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

rtc: ds1374: Remove unused variable

Remove unused variable 'res' and fix the following build warning:

drivers/rtc/rtc-ds1374.c:667:6: warning: unused variable 'res' [-Wunused-variable]

Reported-by: Olof's autobuilder <build@lixom.net>
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>

authored by

Fabio Estevam and committed by
Alexandre Belloni
d78908d9 73798d5c

-2
-2
drivers/rtc/rtc-ds1374.c
··· 664 664 { 665 665 struct ds1374 *ds1374 = i2c_get_clientdata(client); 666 666 #ifdef CONFIG_RTC_DRV_DS1374_WDT 667 - int res; 668 - 669 667 misc_deregister(&ds1374_miscdev); 670 668 ds1374_miscdev.parent = NULL; 671 669 unregister_reboot_notifier(&ds1374_wdt_notifier);