staging: unisys: remove visorinput.c double negative comparison
authorErik Arfvidson <erik.arfvidson@unisys.com>
Thu, 24 Mar 2016 13:18:10 +0000 (09:18 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 28 Mar 2016 14:30:36 +0000 (07:30 -0700)
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>
drivers/staging/unisys/visorinput/visorinput.c

index 13c0316..3299cf5 100644 (file)
@@ -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);