lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20230829175938.3000-1-zeming@nfschina.com>
Date:   Wed, 30 Aug 2023 01:59:38 +0800
From:   Li zeming <zeming@...china.com>
To:     tj@...nel.org, jiangshanlai@...il.com
Cc:     linux-kernel@...r.kernel.org, Li zeming <zeming@...china.com>
Subject: [PATCH] kernel/workqueue: Remove unnecessary ‘0’ values from work_flags

ret is assigned first, so it does not need to initialize the assignment.

Signed-off-by: Li zeming <zeming@...china.com>
---
 kernel/workqueue.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/kernel/workqueue.c b/kernel/workqueue.c
index 800b4208dba9..45213c74d391 100644
--- a/kernel/workqueue.c
+++ b/kernel/workqueue.c
@@ -2988,7 +2988,7 @@ static void insert_wq_barrier(struct pool_workqueue *pwq,
 			      struct wq_barrier *barr,
 			      struct work_struct *target, struct worker *worker)
 {
-	unsigned int work_flags = 0;
+	unsigned int work_flags;
 	unsigned int work_color;
 	struct list_head *head;
 
@@ -3006,7 +3006,7 @@ static void insert_wq_barrier(struct pool_workqueue *pwq,
 	barr->task = current;
 
 	/* The barrier work item does not participate in pwq->nr_active. */
-	work_flags |= WORK_STRUCT_INACTIVE;
+	work_flags = WORK_STRUCT_INACTIVE;
 
 	/*
 	 * If @target is currently being executed, schedule the
-- 
2.18.2

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ