Skip to content
Commit 804a6cfe authored by Akshay Bhat's avatar Akshay Bhat Committed by Alexandre Belloni
Browse files

rtc: rx8010: Fix for incorrect return value



The err variable is not being reset after a successful read. Explicitly
return 0 at the end of function call to account for all return paths.

Reported-by: default avatarJens-Peter Oswald <oswald@lre.de>
Signed-off-by: default avatarAkshay Bhat <akshay.bhat@timesys.com>
Signed-off-by: default avatarAlexandre Belloni <alexandre.belloni@free-electrons.com>
parent abf57f73
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment