summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMao Wenan <maowenan@huawei.com>2019-07-16 20:16:28 +0200
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2019-07-19 11:58:49 +0300
commitd56fef0ec85b8a8bae5d7d003b93f0a0aaf82ed9 (patch)
treed2b4579ecfe854d106695a2414cb5147e95363b1
parent038b1a05eae6666b731920e46f47d8e2332e07ff (diff)
downloadlinux-d56fef0ec85b8a8bae5d7d003b93f0a0aaf82ed9.tar.gz
linux-d56fef0ec85b8a8bae5d7d003b93f0a0aaf82ed9.tar.bz2
linux-d56fef0ec85b8a8bae5d7d003b93f0a0aaf82ed9.zip
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: Mao Wenan <maowenan@huawei.com> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
-rw-r--r--drivers/input/keyboard/applespi.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/input/keyboard/applespi.c b/drivers/input/keyboard/applespi.c
index c1a68438245a..548737e7aeda 100644
--- a/drivers/input/keyboard/applespi.c
+++ b/drivers/input/keyboard/applespi.c
@@ -899,7 +899,6 @@ static void applespi_set_bl_level(struct led_classdev *led_cdev,
struct applespi_data *applespi =
container_of(led_cdev, struct applespi_data, backlight_info);
unsigned long flags;
- int sts;
spin_lock_irqsave(&applespi->cmd_msg_lock, flags);
@@ -916,7 +915,7 @@ static void applespi_set_bl_level(struct led_classdev *led_cdev,
KBD_BL_LEVEL_MIN);
}
- sts = applespi_send_cmd_msg(applespi);
+ applespi_send_cmd_msg(applespi);
spin_unlock_irqrestore(&applespi->cmd_msg_lock, flags);
}