From: Erik Arfvidson Date: Thu, 24 Mar 2016 13:18:10 +0000 (-0400) Subject: staging: unisys: remove visorinput.c double negative comparison X-Git-Tag: v5.15~13567^2~650 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4d12b5ee26e31b964b8918e7adde081103213b06;p=platform%2Fkernel%2Flinux-starfive.git staging: unisys: remove visorinput.c double negative comparison This patch simply removes the double negative comparison for test_bit since test_bit already preforms this check. Signed-off-by: Erik Arfvidson Signed-off-by: David Kershner Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/unisys/visorinput/visorinput.c b/drivers/staging/unisys/visorinput/visorinput.c index 13c0316..3299cf50 100644 --- a/drivers/staging/unisys/visorinput/visorinput.c +++ b/drivers/staging/unisys/visorinput/visorinput.c @@ -470,7 +470,7 @@ handle_locking_key(struct input_dev *visorinput_dev, break; } if (led >= 0) { - int old_state = (test_bit(led, visorinput_dev->led) != 0); + int old_state = (test_bit(led, visorinput_dev->led)); if (old_state != desired_state) { input_report_key(visorinput_dev, keycode, 1);