From: Sachin Kamat Date: Fri, 7 Jun 2013 00:08:47 +0000 (+1000) Subject: drivers/rtc/rtc-v3020.c: remove redundant goto X-Git-Tag: next-20130607~2^2~230 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=326f9a7be4d05105542e5b049c7ba29314d787d6;p=karo-tx-linux.git drivers/rtc/rtc-v3020.c: remove redundant goto Remove a redundant goto statement left over during the conversion of this driver to use devm_* APIs. Signed-off-by: Sachin Kamat Cc: Jingoo Han Signed-off-by: Andrew Morton --- diff --git a/drivers/rtc/rtc-v3020.c b/drivers/rtc/rtc-v3020.c index 6e0cba8f47d5..4ee0e63ebba7 100644 --- a/drivers/rtc/rtc-v3020.c +++ b/drivers/rtc/rtc-v3020.c @@ -320,7 +320,7 @@ static int rtc_probe(struct platform_device *pdev) retval = chip->ops->map_io(chip, pdev, pdata); if (retval) - goto err_chip; + return retval; /* Make sure the v3020 expects a communication cycle * by reading 8 times */ @@ -364,7 +364,7 @@ static int rtc_probe(struct platform_device *pdev) err_io: chip->ops->unmap_io(chip); -err_chip: + return retval; }