]> git.baikalelectronics.ru Git - kernel.git/commit
rtc: max8997: Fix the returned value in case of error in 'max8997_rtc_read_alarm()'
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Wed, 14 Nov 2018 17:19:51 +0000 (18:19 +0100)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Thu, 22 Nov 2018 17:11:35 +0000 (18:11 +0100)
commit404284e65da82844761f45d1a06d676986bfcf25
tree75340578b09e9e4295a6b6bb76b90a22161f481c
parent83c7365c7937d5c05eefd857d342c52d93118743
rtc: max8997: Fix the returned value in case of error in 'max8997_rtc_read_alarm()'

In case of error, we return 0.
This is spurious and not consistent with the other functions of the driver.
Propagate the error code instead.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-max8997.c