]> git.baikalelectronics.ru Git - kernel.git/commit
rtc: pcf2123: remove useless error path goto
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Mon, 19 Aug 2019 18:26:53 +0000 (20:26 +0200)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Tue, 20 Aug 2019 19:42:13 +0000 (21:42 +0200)
commit7a61de7ede1e84e1ae8ea6f7e4130650cf292513
tree5e3c878a39cac7860d2df5cd9d18049725c9ce7f
parentfbd3f7fe81817bcd472141d90b18dd55f8e832b0
rtc: pcf2123: remove useless error path goto

kfree_exit only returns ret, remove it. This also fixes the
devm_regmap_init_spi error case where the probe wouldn't actually fail
because ret is initialized to 0.

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