Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Alexander Shiyan and committed by
Wim Van Sebroeck
a9ba8376 c303ca87

+1 -2
+1 -2
drivers/watchdog/sc520_wdt.c
··· 158 158 159 159 static void wdt_config(int writeval) 160 160 { 161 - __u16 dummy; 162 161 unsigned long flags; 163 162 164 163 /* buy some time (ping) */ 165 164 spin_lock_irqsave(&wdt_spinlock, flags); 166 - dummy = readw(wdtmrctl); /* ensure write synchronization */ 165 + readw(wdtmrctl); /* ensure write synchronization */ 167 166 writew(0xAAAA, wdtmrctl); 168 167 writew(0x5555, wdtmrctl); 169 168 /* unlock WDT = make WDT configuration register writable one time */