diff options
author | Li zeming | 2023-07-12 03:43:31 +0800 |
---|---|---|
committer | Luis Chamberlain | 2023-07-10 12:47:01 -0700 |
commit | 9ce170cef66916526dcaa868a67cfcc0c2f0c3d6 (patch) | |
tree | 32da941e6014198c1e525df50ecf610f4a65ea2f /kernel/params.c | |
parent | c05780ef3c190c2dafbf0be8e65d4f01103ad577 (diff) |
kernel: params: Remove unnecessary ‘0’ values from err
err is assigned first, so it does not need to initialize the assignment.
Signed-off-by: Li zeming <zeming@nfschina.com>
Reviewed-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
Diffstat (limited to 'kernel/params.c')
-rw-r--r-- | kernel/params.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/params.c b/kernel/params.c index 07d01f6ce9a2..2d4a0564697e 100644 --- a/kernel/params.c +++ b/kernel/params.c @@ -331,7 +331,7 @@ EXPORT_SYMBOL(param_ops_bool); int param_set_bool_enable_only(const char *val, const struct kernel_param *kp) { - int err = 0; + int err; bool new_value; bool orig_value = *(bool *)kp->arg; struct kernel_param dummy_kp = *kp; |