summaryrefslogtreecommitdiffstats
path: root/drivers/watchdog/sc520_wdt.c
diff options
context:
space:
mode:
authorAlexander Shiyan2014-02-15 10:22:49 +0100
committerWim Van Sebroeck2014-03-31 13:27:34 +0200
commita9ba8376e9e6f7d3d6dd5c2c6816e9a9358d38e8 (patch)
tree1d556375b34a96ab6c955679bcd918833f26df6c /drivers/watchdog/sc520_wdt.c
parentwatchdog: intel_scu_watchdog: Remove unused variable (diff)
downloadkernel-qcow2-linux-a9ba8376e9e6f7d3d6dd5c2c6816e9a9358d38e8.tar.gz
kernel-qcow2-linux-a9ba8376e9e6f7d3d6dd5c2c6816e9a9358d38e8.tar.xz
kernel-qcow2-linux-a9ba8376e9e6f7d3d6dd5c2c6816e9a9358d38e8.zip
watchdog: sc520_wdt: Remove unused variable
Variable "dummy" is not used anywhere in the function wdt_config(). 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/sc520_wdt.c')
-rw-r--r--drivers/watchdog/sc520_wdt.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/watchdog/sc520_wdt.c b/drivers/watchdog/sc520_wdt.c
index f353e18b1a82..1cfd3f6a13d5 100644
--- a/drivers/watchdog/sc520_wdt.c
+++ b/drivers/watchdog/sc520_wdt.c
@@ -158,12 +158,11 @@ static void wdt_timer_ping(unsigned long data)
static void wdt_config(int writeval)
{
- __u16 dummy;
unsigned long flags;
/* buy some time (ping) */
spin_lock_irqsave(&wdt_spinlock, flags);
- dummy = readw(wdtmrctl); /* ensure write synchronization */
+ readw(wdtmrctl); /* ensure write synchronization */
writew(0xAAAA, wdtmrctl);
writew(0x5555, wdtmrctl);
/* unlock WDT = make WDT configuration register writable one time */