Commit d56fef0e authored by Mao Wenan's avatar Mao Wenan Committed by Dmitry Torokhov

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: b426ac0452093d ("Input: add Apple SPI keyboard and trackpad driver")
Signed-off-by: default avatarMao Wenan <maowenan@huawei.com>
Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
parent 038b1a05
...@@ -899,7 +899,6 @@ static void applespi_set_bl_level(struct led_classdev *led_cdev, ...@@ -899,7 +899,6 @@ static void applespi_set_bl_level(struct led_classdev *led_cdev,
struct applespi_data *applespi = struct applespi_data *applespi =
container_of(led_cdev, struct applespi_data, backlight_info); container_of(led_cdev, struct applespi_data, backlight_info);
unsigned long flags; unsigned long flags;
int sts;
spin_lock_irqsave(&applespi->cmd_msg_lock, flags); spin_lock_irqsave(&applespi->cmd_msg_lock, flags);
...@@ -916,7 +915,7 @@ static void applespi_set_bl_level(struct led_classdev *led_cdev, ...@@ -916,7 +915,7 @@ static void applespi_set_bl_level(struct led_classdev *led_cdev,
KBD_BL_LEVEL_MIN); KBD_BL_LEVEL_MIN);
} }
sts = applespi_send_cmd_msg(applespi); applespi_send_cmd_msg(applespi);
spin_unlock_irqrestore(&applespi->cmd_msg_lock, flags); spin_unlock_irqrestore(&applespi->cmd_msg_lock, flags);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment