Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4d12b5ee authored by Erik Arfvidson's avatar Erik Arfvidson Committed by Greg Kroah-Hartman
Browse files

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: default avatarErik Arfvidson <erik.arfvidson@unisys.com>
Signed-off-by: default avatarDavid Kershner <david.kershner@unisys.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 800aecc3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);