module: main: remove unnecessary ‘0’ values from err
PATCH 1/1 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 <[email protected]>
--- kernel/module/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/module/main.c +1 -1
@@ -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;/*
Signature · 1 line
2.18.2
Luis Chamberlain
maintainerQuoted 2 lines · Li kunyu
err is assigned before use, so it does not need to initialize the assignment.
Sorry no, for something so simple, it just smells like you are wanting to incraese your commit count.
Luis