Explorar o código

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 <erik.arfvidson@unisys.com>
Signed-off-by: David Kershner <david.kershner@unisys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Erik Arfvidson %!s(int64=9) %!d(string=hai) anos
pai
achega
4d12b5ee26
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      drivers/staging/unisys/visorinput/visorinput.c

+ 1 - 1
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);