Skip to content

Commit

Permalink
drivers/rtc/rtc-max8925.c: fix max8925_rtc_read_alarm() return value …
Browse files Browse the repository at this point in the history
…error

max8925_rtc_read_alarm should always return 0 with success

Signed-off-by: Kevin Liu <kliu5@marvell.com>
Signed-off-by: Haojian Zhuang <haojian.zhuang@marvell.com>
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
Kevin Liu authored and Linus Torvalds committed Mar 23, 2012
1 parent aa19689 commit 0cf30bd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/rtc/rtc-max8925.c
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,7 @@ static int max8925_rtc_read_alarm(struct device *dev, struct rtc_wkalrm *alrm)
alrm->pending = 1;
else
alrm->pending = 0;
return 0;
out:
return ret;
}
Expand Down

0 comments on commit 0cf30bd

Please sign in to comment.