aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/watchdog
diff options
context:
space:
mode:
authorAlexander Shiyan <shc_work@mail.ru>2014-02-15 04:22:18 -0500
committerWim Van Sebroeck <wim@iguana.be>2014-03-31 07:26:56 -0400
commitc303ca87653566db01fe5e49ac72a8b3dc1fb722 (patch)
treee5a17ffbc603f612c9ab40089ab08d44c2ad6d18 /drivers/watchdog
parent0c29c2e8506ab9cfebd4836e758aa55dd5cf66fe (diff)
watchdog: intel_scu_watchdog: Remove unused variable
Variable "hw_pre_value" is not used anywhere in the function intel_scu_set_heartbeat(). This patch removes this variable. Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Reviewed-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
Diffstat (limited to 'drivers/watchdog')
-rw-r--r--drivers/watchdog/intel_scu_watchdog.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/watchdog/intel_scu_watchdog.c b/drivers/watchdog/intel_scu_watchdog.c
index e13e65e996aa..0caab6241eb7 100644
--- a/drivers/watchdog/intel_scu_watchdog.c
+++ b/drivers/watchdog/intel_scu_watchdog.c
@@ -211,7 +211,6 @@ static int intel_scu_set_heartbeat(u32 t)
211 int ipc_ret; 211 int ipc_ret;
212 int retry_count; 212 int retry_count;
213 u32 soft_value; 213 u32 soft_value;
214 u32 hw_pre_value;
215 u32 hw_value; 214 u32 hw_value;
216 215
217 watchdog_device.timer_set = t; 216 watchdog_device.timer_set = t;
@@ -273,8 +272,7 @@ static int intel_scu_set_heartbeat(u32 t)
273 watchdog_device.timer_load_count_addr); 272 watchdog_device.timer_load_count_addr);
274 273
275 /* read count value before starting timer */ 274 /* read count value before starting timer */
276 hw_pre_value = ioread32(watchdog_device.timer_load_count_addr); 275 ioread32(watchdog_device.timer_load_count_addr);
277 hw_pre_value = hw_pre_value & 0xFFFF0000;
278 276
279 /* Start the timer */ 277 /* Start the timer */
280 iowrite32(0x00000003, watchdog_device.timer_control_addr); 278 iowrite32(0x00000003, watchdog_device.timer_control_addr);