Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Li zeming and committed by
Luis Chamberlain
9ce170ce c05780ef

+1 -1
+1 -1
kernel/params.c
··· 331 331 332 332 int param_set_bool_enable_only(const char *val, const struct kernel_param *kp) 333 333 { 334 - int err = 0; 334 + int err; 335 335 bool new_value; 336 336 bool orig_value = *(bool *)kp->arg; 337 337 struct kernel_param dummy_kp = *kp;