Skip to content

Commit d56fef0

Browse files
Mao Wenandtor
authored andcommitted
Input: applespi - remove set but not used variables 'sts'
Fixes gcc '-Wunused-but-set-variable' warning: drivers/input/keyboard/applespi.c: In function applespi_set_bl_level: drivers/input/keyboard/applespi.c:902:6: warning: variable sts set but not used [-Wunused-but-set-variable] Fixes: b426ac0 ("Input: add Apple SPI keyboard and trackpad driver") Signed-off-by: Mao Wenan <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
1 parent 038b1a0 commit d56fef0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/input/keyboard/applespi.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -899,7 +899,6 @@ static void applespi_set_bl_level(struct led_classdev *led_cdev,
899899
struct applespi_data *applespi =
900900
container_of(led_cdev, struct applespi_data, backlight_info);
901901
unsigned long flags;
902-
int sts;
903902

904903
spin_lock_irqsave(&applespi->cmd_msg_lock, flags);
905904

@@ -916,7 +915,7 @@ static void applespi_set_bl_level(struct led_classdev *led_cdev,
916915
KBD_BL_LEVEL_MIN);
917916
}
918917

919-
sts = applespi_send_cmd_msg(applespi);
918+
applespi_send_cmd_msg(applespi);
920919

921920
spin_unlock_irqrestore(&applespi->cmd_msg_lock, flags);
922921
}

0 commit comments

Comments
 (0)