Skip to contentSkip to conversation

rtc-ds1511: fix sparse warning

PATCH Applied Hannes Eder 3 participants 3 messages Nov 28, 2008 – Nov 30, 2008

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 rtc-ds1511: fix sparse warning

Fix this sparse warning:

drivers/rtc/rtc-ds1511.c:634:2: warning: returning void-valued expression

---
 drivers/rtc/rtc-ds1511.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/rtc/rtc-ds1511.c +1 -1
index 25caada..062a1d1 100644
@@ -631,7 +631,7 @@ ds1511_rtc_init(void)
  static void __exit
 ds1511_rtc_exit(void)
 {
-	return platform_driver_unregister(&ds1511_rtc_driver);
+	platform_driver_unregister(&ds1511_rtc_driver);
 }
 
 module_init(ds1511_rtc_init);
Signature · 1 line
1.5.6.3
Applied
#2 lore raw
Quoted 6 lines · Alessandro Zummo
Quoted 5 lines

Fix this sparse warning:

drivers/rtc/rtc-ds1511.c:634:2: warning: returning void-valued expression

Applied to trivial patches tree. If anyone has already merged this through another subsystem tree, please let me know.

Thanks,

Signature · 2 lines
Jiri Kosina
SUSE Labs