]> Git Repo - linux.git/commitdiff
rtc: ds1374: Remove unused variable
authorFabio Estevam <[email protected]>
Mon, 10 Aug 2015 12:47:45 +0000 (09:47 -0300)
committerAlexandre Belloni <[email protected]>
Sat, 5 Sep 2015 17:37:22 +0000 (19:37 +0200)
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 <[email protected]>
Signed-off-by: Fabio Estevam <[email protected]>
Signed-off-by: Alexandre Belloni <[email protected]>
drivers/rtc/rtc-ds1374.c

index 7067232ba50719e7bca3160b8f2d8a1844f060e8..3b3049c8c9e04ddb8ebfb3c391eba41b320286f3 100644 (file)
@@ -664,8 +664,6 @@ static int ds1374_remove(struct i2c_client *client)
 {
        struct ds1374 *ds1374 = i2c_get_clientdata(client);
 #ifdef CONFIG_RTC_DRV_DS1374_WDT
-       int res;
-
        misc_deregister(&ds1374_miscdev);
        ds1374_miscdev.parent = NULL;
        unregister_reboot_notifier(&ds1374_wdt_notifier);
This page took 0.060023 seconds and 4 git commands to generate.