From ba46c88c6f077f7e6e1c266e9742870802037b68 Mon Sep 17 00:00:00 2001 From: Rafaël Carré Date: Sat, 22 May 2010 00:28:26 +0000 Subject: rtc_enable_alarm() needs no return value git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26245 a1c6a512-1295-4272-9138-f99709370657 --- firmware/drivers/rtc/rtc_m41st84w.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'firmware/drivers/rtc/rtc_m41st84w.c') diff --git a/firmware/drivers/rtc/rtc_m41st84w.c b/firmware/drivers/rtc/rtc_m41st84w.c index 5374f66f24..4cfa155bfb 100644 --- a/firmware/drivers/rtc/rtc_m41st84w.c +++ b/firmware/drivers/rtc/rtc_m41st84w.c @@ -137,9 +137,7 @@ void rtc_get_alarm(int *h, int *m) /* turn alarm on or off by setting the alarm flag enable */ /* the alarm is automatically disabled when the RTC gets Vcc power at startup */ /* avoid that an alarm occurs when the device is on because this locks the ON key forever */ -/* returns false if alarm was set and alarm flag (output) is off */ -/* returns true if alarm flag went on, which would lock the device, so the alarm was disabled again */ -bool rtc_enable_alarm(bool enable) +void rtc_enable_alarm(bool enable) { unsigned char data = rtc_read(0x0a); if (enable) @@ -164,8 +162,6 @@ bool rtc_enable_alarm(bool enable) data |= 0xa0; /* turn bit d7=AFE and d5=ABE on */ rtc_write(0x0a, data); } - - return false; /* all ok */ } #endif /* HAVE_RTC_ALARM */ -- cgit v1.2.3