Skip to content

Commit 9ce170c

Browse files
Li zemingmcgrof
authored andcommitted
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>
1 parent c05780e commit 9ce170c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

kernel/params.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ EXPORT_SYMBOL(param_ops_bool);
331331

332332
int param_set_bool_enable_only(const char *val, const struct kernel_param *kp)
333333
{
334-
int err = 0;
334+
int err;
335335
bool new_value;
336336
bool orig_value = *(bool *)kp->arg;
337337
struct kernel_param dummy_kp = *kp;

0 commit comments

Comments
 (0)