[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20221223083232.4189-1-kunyu@nfschina.com>
Date: Fri, 23 Dec 2022 16:32:32 +0800
From: Li kunyu <kunyu@...china.com>
To: mcgrof@...nel.org
Cc: linux-modules@...r.kernel.org, linux-kernel@...r.kernel.org,
Li kunyu <kunyu@...china.com>
Subject: [PATCH] module: main: remove unnecessary ‘0’ values from err
err is assigned before use, so it does not need to initialize the
assignment.
Signed-off-by: Li kunyu <kunyu@...china.com>
---
kernel/module/main.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kernel/module/main.c b/kernel/module/main.c
index ff2dfd1f548d..6e6e0428b183 100644
--- a/kernel/module/main.c
+++ b/kernel/module/main.c
@@ -2669,7 +2669,7 @@ static int load_module(struct load_info *info, const char __user *uargs,
int flags)
{
struct module *mod;
- long err = 0;
+ long err;
char *after_dashes;
/*
--
2.18.2
Powered by blists - more mailing lists