[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20230829181755.3204-1-zeming@nfschina.com>
Date: Wed, 30 Aug 2023 02:17:55 +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 hash
hash is assigned first, so it does not need to initialize the
assignment.
Signed-off-by: Li zeming <zeming@...china.com>
---
kernel/workqueue.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kernel/workqueue.c b/kernel/workqueue.c
index 45213c74d391..c3a0d10088b4 100644
--- a/kernel/workqueue.c
+++ b/kernel/workqueue.c
@@ -3736,7 +3736,7 @@ static void copy_workqueue_attrs(struct workqueue_attrs *to,
/* hash value of the content of @attr */
static u32 wqattrs_hash(const struct workqueue_attrs *attrs)
{
- u32 hash = 0;
+ u32 hash;
hash = jhash_1word(attrs->nice, hash);
hash = jhash(cpumask_bits(attrs->cpumask),
--
2.18.2
Powered by blists - more mailing lists