Skip to content

Commit

Permalink
staging: unisys: visorinput: remove redundant assignment of variable led
Browse files Browse the repository at this point in the history
The variable led  is being assigned a value that is never used before
a return statement. The assignment is redundant and can be removed.

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Addresses-Coverity: ("Unused value")
Link: https://lore.kernel.org/r/20210513220832.137336-1-colin.king@canonical.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Colin Ian King authored and Greg Kroah-Hartman committed May 14, 2021
1 parent 09be0d0 commit 76e78f3
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/staging/unisys/visorinput/visorinput.c
Original file line number Diff line number Diff line change
@@ -556,7 +556,6 @@ static void handle_locking_key(struct input_dev *visorinput_dev, int keycode,
led = LED_NUML;
break;
default:
led = -1;
return;
}
if (test_bit(led, visorinput_dev->led) != desired_state) {

0 comments on commit 76e78f3

Please sign in to comment.