rtc: ls1x: remove useless label and goto
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Thu, 17 May 2018 20:53:26 +0000 (22:53 +0200)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Thu, 17 May 2018 20:55:17 +0000 (22:55 +0200)
commit14dc3ec5203ced2000ef157f147944233309c850
treec380ae7b31040b0ea72f90925bc694d018501952
parent52f0e7bc19fb1397aa9d29f87415f94d39bb8b01
rtc: ls1x: remove useless label and goto

The error handling in ls1x_rtc_probe used to release resources but since
it is using devm functions, it only returns a value. Make the code clearer
by returning directly instead of using goto.

Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-ls1x.c