On 17/08/2019 09:56:04+0300, Dan Carpenter wrote: > 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@xxxxxxxxxxxx> > Fixes: 97f5b0379c38 ("rtc: rv3029: Clean up error handling in rv3029_eeprom_write()") > Signed-off-by: Dan Carpenter <dan.carpenter@xxxxxxxxxx> > --- > drivers/rtc/rtc-rv3029c2.c | 16 ++++++++-------- > 1 file changed, 8 insertions(+), 8 deletions(-) > Applied, thanks. -- Alexandre Belloni, Bootlin Embedded Linux and Kernel engineering https://bootlin.com