watchdog: sc520_wdt: Remove unused variable
authorAlexander Shiyan <shc_work@mail.ru>
Sat, 15 Feb 2014 09:22:49 +0000 (13:22 +0400)
committerWim Van Sebroeck <wim@iguana.be>
Mon, 31 Mar 2014 11:27:34 +0000 (13:27 +0200)
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>
drivers/watchdog/sc520_wdt.c

index f353e18b1a82fc65221a0dcf9efa7bf696eedbe3..1cfd3f6a13d5f428adebe5a7b3e030b155f06a44 100644 (file)
@@ -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 */