CC: [email protected] CC: [email protected] TO: Patrik Fimml <[email protected]> CC: Dmitry Torokhov <[email protected]> CC: Andrzej Pietrasiewicz <[email protected]> CC: [email protected] CC: [email protected]
From: kernel test robot <[email protected]> drivers/input/input.c:1749:5-8: Unneeded variable: "ret". Return "0" on line 1772 Remove unneeded variable used to store return value. Generated by: scripts/coccinelle/misc/returnvar.cocci Fixes: a181616487db ("Input: Add "inhibited" property") CC: Patrik Fimml <[email protected]> Reported-by: kernel test robot <[email protected]> Signed-off-by: kernel test robot <[email protected]> --- tree: https://git.kernel.org/pub/scm/linux/kernel/git/dtor/input.git next head: 7ce8d91b8a849c4b9a010a8b773e3838a8e3d030 commit: a181616487dbdbc953e476d1da15365f887859ed [2591/2593] Input: Add "inhibited" property :::::: branch date: 7 hours ago :::::: commit date: 2 days ago Please take the patch only if it's a positive warning. Thanks! input.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) --- a/drivers/input/input.c +++ b/drivers/input/input.c @@ -1746,8 +1746,6 @@ EXPORT_SYMBOL(input_reset_device); static int input_inhibit_device(struct input_dev *dev) { - int ret = 0; - mutex_lock(&dev->mutex); if (dev->inhibited) @@ -1769,7 +1767,7 @@ static int input_inhibit_device(struct i out: mutex_unlock(&dev->mutex); - return ret; + return 0; } static int input_uninhibit_device(struct input_dev *dev) _______________________________________________ kbuild mailing list -- [email protected] To unsubscribe send an email to [email protected]
