]> git.baikalelectronics.ru Git - kernel.git/commit
rtc: rv3029: Clean up error handling in rv3029_eeprom_write()
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 20 Sep 2017 21:45:30 +0000 (00:45 +0300)
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>
Thu, 12 Oct 2017 14:24:19 +0000 (16:24 +0200)
commit491f84c3e9cda34703f35993227379a16b26f703
tree7991417d68ff4ca36d85f7be0f119098e237e8c8
parentb1fca996014224772edec9da8e33072ec93cc174
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>
drivers/rtc/rtc-rv3029c2.c