Skip to contentSkip to conversation

rtc-stk17ta8: fix sparse warning

PATCH In review 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-stk17ta8: fix sparse warning

Fix this sparse warning:

drivers/rtc/rtc-stk17ta8.c:403:2: warning: returning void-valued expression

---
 drivers/rtc/rtc-stk17ta8.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/rtc/rtc-stk17ta8.c +1 -1
index f4cd46e..549990f 100644
@@ -400,7 +400,7 @@ static __init int stk17ta8_init(void)
 
 static __exit void stk17ta8_exit(void)
 {
-	return platform_driver_unregister(&stk17ta8_rtc_driver);
+	platform_driver_unregister(&stk17ta8_rtc_driver);
 }
 
 module_init(stk17ta8_init);
Signature · 1 line
1.5.6.3
#2 lore raw
Quoted 6 lines · Alessandro Zummo
Quoted 5 lines

Fix this sparse warning:

drivers/rtc/rtc-stk17ta8.c:403:2: warning: returning void-valued expression

Thanks. The same as for rtc-ds1511 patch -- I have queued it in trivial tree, if anyone has taken it through another tree, please let me know.

Signature · 2 lines
Jiri Kosina
SUSE Labs