diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2017-09-20 23:45:30 +0200 |
---|---|---|
committer | Alexandre Belloni <alexandre.belloni@free-electrons.com> | 2017-10-12 16:24:19 +0200 |
commit | 97f5b0379c382d9c2b944baa02852338dee7d8aa (patch) | |
tree | 7991417d68ff4ca36d85f7be0f119098e237e8c8 /drivers/base | |
parent | rtc: jz4740: fix loading of rtc driver (diff) | |
download | linux-97f5b0379c382d9c2b944baa02852338dee7d8aa.tar.xz linux-97f5b0379c382d9c2b944baa02852338dee7d8aa.zip |
rtc: rv3029: Clean up error handling in rv3029_eeprom_write()
We don't need both "ret" and "err" when they do the same thing. All the
functions called here return zero on success or negative error codes.
It's more clear to return a literal zero at the end instead of
"return ret;"
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Diffstat (limited to 'drivers/base')
0 files changed, 0 insertions, 0 deletions