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

Input: lm8323 - missing error check in lm8323_set_disable()

The missing error handling here is not especially harmful but static
checkers complain that "i" can be used uninitialized.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>

authored by

Dan Carpenter and committed by
Dmitry Torokhov
3b5005e9 939ffb17

+2
+2
drivers/input/keyboard/lm8323.c
··· 616 616 unsigned int i; 617 617 618 618 ret = kstrtouint(buf, 10, &i); 619 + if (ret) 620 + return ret; 619 621 620 622 mutex_lock(&lm->lock); 621 623 lm->kp_enabled = !i;