summaryrefslogtreecommitdiffstats
path: root/drivers/rtc/rtc-pcf8563.c
diff options
context:
space:
mode:
authorAkshay Bhat <akshay.bhat@timesys.com>2017-11-08 14:58:14 -0500
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>2017-11-09 01:16:35 +0100
commit804a6cfeb5c9e1caae86b345a5a8a50f77ddccc4 (patch)
treeade4aa4f12ae302baf386a11c5a01720add4a63a /drivers/rtc/rtc-pcf8563.c
parentabf57f73ef0f88f215d35c1418bba0ab7bdee710 (diff)
downloadtalos-op-linux-804a6cfeb5c9e1caae86b345a5a8a50f77ddccc4.tar.gz
talos-op-linux-804a6cfeb5c9e1caae86b345a5a8a50f77ddccc4.zip
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: Jens-Peter Oswald <oswald@lre.de> Signed-off-by: Akshay Bhat <akshay.bhat@timesys.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Diffstat (limited to 'drivers/rtc/rtc-pcf8563.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud