Files
android_kernel_xiaomi_sm8450/drivers/rtc
Dan Carpenter a6f26606dd rtc: rv3029: revert error handling patch to rv3029_eeprom_write()
My error handling "cleanup" was totally wrong.  Both the "err" and "ret"
variables are required.  The "err" variable holds the error codes for
rv3029_eeprom_enter/exit() and the "ret" variable holds the error codes
for if actual write fails.  In my patch if the write failed, the
function probably still returned success.

Reported-by: Tom Evans <tom.evans@motec.com.au>
Fixes: 97f5b0379c ("rtc: rv3029: Clean up error handling in rv3029_eeprom_write()")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Link: https://lore.kernel.org/r/20190817065604.GB29951@mwanda
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2019-08-21 09:57:23 +02:00
..
2019-08-12 23:01:25 +02:00
2019-08-12 22:56:07 +02:00
2019-04-16 18:06:54 +02:00
2019-04-04 10:06:54 +02:00
2019-04-04 10:07:10 +02:00
2016-05-20 12:33:51 +02:00
2017-09-05 09:55:02 +02:00
2019-05-23 17:44:52 +02:00
2019-04-29 15:53:43 +02:00
2019-05-08 22:14:36 +02:00