diff mbox

rtc-ds1511: fix sparse warning

Message ID 493049fa.06a1660a.3655.ffffab3c@mx.google.com
State Accepted, archived
Headers show

Commit Message

Hannes Eder Nov. 28, 2008, 4:01 p.m. UTC
Fix this sparse warning:

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

Signed-off-by: Hannes Eder <hannes@hanneseder.net>
---
 drivers/rtc/rtc-ds1511.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Comments

Alessandro Zummo Nov. 30, 2008, 12:39 a.m. UTC | #1
On Fri, 28 Nov 2008 17:01:35 +0100
Hannes Eder <hannes@hanneseder.net> wrote:

> Fix this sparse warning:
> 
>   drivers/rtc/rtc-ds1511.c:634:2: warning: returning void-valued expression
> 
> Signed-off-by: Hannes Eder <hannes@hanneseder.net>


 Acked-by: Alessandro Zummo <a.zummo@towertech.it>
Jiri Kosina Nov. 30, 2008, 1:08 p.m. UTC | #2
On Sun, 30 Nov 2008, Alessandro Zummo wrote:

> > Fix this sparse warning:
> > 
> >   drivers/rtc/rtc-ds1511.c:634:2: warning: returning void-valued expression
> > 
> > Signed-off-by: Hannes Eder <hannes@hanneseder.net>
>  Acked-by: Alessandro Zummo <a.zummo@towertech.it>

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

Thanks,
diff mbox

Patch

diff --git a/drivers/rtc/rtc-ds1511.c b/drivers/rtc/rtc-ds1511.c
index 25caada..062a1d1 100644
--- a/drivers/rtc/rtc-ds1511.c
+++ b/drivers/rtc/rtc-ds1511.c
@@ -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);