Skip to content

Commit

Permalink
rtc: do not return void value
Browse files Browse the repository at this point in the history
This patch fixes these sparse warnings:

drivers/rtc/rtc-ds1742.c:265:2: warning: returning void-valued expression
drivers/rtc/rtc-ds1553.c:409:2: warning: returning void-valued expression

Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Cc: David Brownell <david-b@pacbell.net>
Cc: Alessandro Zummo <a.zummo@towertech.it>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Atsushi Nemoto authored and Linus Torvalds committed Jul 22, 2007
1 parent 8214b08 commit ef154ec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion drivers/rtc/rtc-ds1553.c
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ static __init int ds1553_init(void)

static __exit void ds1553_exit(void)
{
return platform_driver_unregister(&ds1553_rtc_driver);
platform_driver_unregister(&ds1553_rtc_driver);
}

module_init(ds1553_init);
Expand Down
2 changes: 1 addition & 1 deletion drivers/rtc/rtc-ds1742.c
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ static __init int ds1742_init(void)

static __exit void ds1742_exit(void)
{
return platform_driver_unregister(&ds1742_rtc_driver);
platform_driver_unregister(&ds1742_rtc_driver);
}

module_init(ds1742_init);
Expand Down

0 comments on commit ef154ec

Please sign in to comment.