All of lore.kernel.org
 help / color / mirror / Atom feed
* [rtc-linux] [PATCH] drivers/rtc/rtc-ds1374.c: fix compilation warning
@ 2015-09-02  8:45 Mike Rapoport
  0 siblings, 0 replies; only message in thread
From: Mike Rapoport @ 2015-09-02  8:45 UTC (permalink / raw)
  To: Alessandro Zummo; +Cc: Alexandre Belloni, rtc-linux, Mike Rapoport

When CONFIG_RTC_DRV_DS1374_WDT is enabled, the compiler warns about unused
variable:

  CC      drivers/rtc/rtc-ds1374.o
drivers/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;
      ^

Signed-off-by: Mike Rapoport <mike.rapoport@gmail.com>
---
 drivers/rtc/rtc-ds1374.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/rtc/rtc-ds1374.c b/drivers/rtc/rtc-ds1374.c
index 7067232..3b3049c 100644
--- a/drivers/rtc/rtc-ds1374.c
+++ b/drivers/rtc/rtc-ds1374.c
@@ -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 rtc-linux+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2015-09-02  8:45 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-09-02  8:45 [rtc-linux] [PATCH] drivers/rtc/rtc-ds1374.c: fix compilation warning Mike Rapoport

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.