diff options
author | Colin Ian King <colin.king@canonical.com> | 2021-05-14 01:08:32 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-05-14 14:55:45 +0300 |
commit | 76e78f3df8f5d21b1a85f770fa92a1fd211e429b (patch) | |
tree | 3280dcf4f538453da7723f6a91b6499892ec668b | |
parent | 09be0d0db530412eae63b8e11cf03d2b93d2426d (diff) | |
download | linux-76e78f3df8f5d21b1a85f770fa92a1fd211e429b.tar.xz |
staging: unisys: visorinput: remove redundant assignment of variable led
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>
-rw-r--r-- | drivers/staging/unisys/visorinput/visorinput.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/staging/unisys/visorinput/visorinput.c b/drivers/staging/unisys/visorinput/visorinput.c index 6d202cba8575..426deab22d62 100644 --- a/drivers/staging/unisys/visorinput/visorinput.c +++ b/drivers/staging/unisys/visorinput/visorinput.c @@ -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) { |