drivers/rtc/rtc-ds1374.c: fix compilation warning
PATCH 1/1 drivers/rtc/rtc-ds1374.c: fix compilation warning
When CONFIG_RTC_DRV_DS1374_WDT is enabled, the compiler warns about unused variable:
CC drivers/rtc/rtc-ds1374.odrivers/rtc/rtc-ds1374.c: In function =E2=80=98ds1374_remove=E2=80=99:drivers/rtc/rtc-ds1374.c:667:6: warning: unused variable =E2=80=98res=E2=80= =99 [-Wunused-variable]
int res;
^--- drivers/rtc/rtc-ds1374.c | 2 -- 1 file changed, 2 deletions(-)
drivers/rtc/rtc-ds1374.c +0 -2
@@ -664,8 +664,6 @@ static int ds1374_remove(struct i2c_client *client) { struct ds1374 *ds1374 =3D i2c_get_clientdata(client);#ifdef CONFIG_RTC_DRV_DS1374_WDT -int res; -misc_deregister (&ds1374_miscdev); ds1374_miscdev.parent =3D NULL;unregister_reboot_notifier (&ds1374_wdt_notifier);
--=20
1.8.3.1
--=20
--=20
You received this message because you are subscribed to "rtc-linux". Membership options at http://groups.google.com/group/rtc-linux . Please read http://groups.google.com/group/rtc-linux/web/checklist
before submitting a driver.
---=20
You received this message because you are subscribed to the Google Groups "= rtc-linux" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to [email protected].
For more options, visit https://groups.google.com/d/optout.