]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit568ffbcbc503938cf1e30727c32f13d56e2ec620
treef734e58490c613d6dcbc9184071f4cb4bb4c0368
parentb98d8a8be3aef6ee7460928b62f977d2ce3ffc0a
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