summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHongbo Yao <yaohongbo@huawei.com>2020-05-09 12:36:11 +0200
committerSebastian Reichel <sre@kernel.org>2020-05-10 01:20:41 +0200
commit1072ceada4586f7c1d316a0dd9fa751a7055969c (patch)
treea4a55ff0847734379a95695716909cf5eae90f98
parentpower: supply: lp8788: Fix an error handling path in 'lp8788_charger_probe()' (diff)
downloadlinux-1072ceada4586f7c1d316a0dd9fa751a7055969c.tar.xz
linux-1072ceada4586f7c1d316a0dd9fa751a7055969c.zip
power: reset: ltc2952: remove unused variable
Fix gcc '-Wunused-but-set-variable' warning: drivers/power/reset/ltc2952-poweroff.c:97:16: warning: variable ‘overruns’ set but not used [-Wunused-but-set-variable] unsigned long overruns; Reported-by: Hulk Robot <hulkci@huawei.com> Signed-off-by: Hongbo Yao <yaohongbo@huawei.com> Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
-rw-r--r--drivers/power/reset/ltc2952-poweroff.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/power/reset/ltc2952-poweroff.c b/drivers/power/reset/ltc2952-poweroff.c
index e4a0cc45b3d1..318927938b05 100644
--- a/drivers/power/reset/ltc2952-poweroff.c
+++ b/drivers/power/reset/ltc2952-poweroff.c
@@ -94,7 +94,6 @@ static enum hrtimer_restart ltc2952_poweroff_timer_wde(struct hrtimer *timer)
{
ktime_t now;
int state;
- unsigned long overruns;
struct ltc2952_poweroff *data = to_ltc2952(timer, timer_wde);
if (data->kernel_panic)
@@ -104,7 +103,7 @@ static enum hrtimer_restart ltc2952_poweroff_timer_wde(struct hrtimer *timer)
gpiod_set_value(data->gpio_watchdog, !state);
now = hrtimer_cb_get_time(timer);
- overruns = hrtimer_forward(timer, now, data->wde_interval);
+ hrtimer_forward(timer, now, data->wde_interval);
return HRTIMER_RESTART;
}