rtc: ds1343: check regmap_read return value
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Sat, 19 Oct 2019 20:49:38 +0000 (22:49 +0200)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Sat, 19 Oct 2019 20:56:05 +0000 (22:56 +0200)
commitce0fd9db653b18ed15aea08ee80056cc9ec094e9
treef734e58490c613d6dcbc9184071f4cb4bb4c0368
parentac08888b2590f690bed1f1afe7a39bdda76eb41f
rtc: ds1343: check regmap_read return value

Check whether regmap_read fails before continuing in the sysfs .show
callbacks.

Link: https://lore.kernel.org/r/20191019204941.6203-6-alexandre.belloni@bootlin.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-ds1343.c