summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSachin Kamat <sachin.kamat@linaro.org>2013-07-04 00:05:41 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2013-07-04 01:07:46 +0200
commitd8d5290a32d4a698db32f233f11bc2021a803746 (patch)
tree29cae0d7640a659fc91dd8bf9e79cacd6b2a4b87
parentrtc: rtc-88pm80x: remove unnecessary platform_set_drvdata() (diff)
downloadlinux-d8d5290a32d4a698db32f233f11bc2021a803746.tar.xz
linux-d8d5290a32d4a698db32f233f11bc2021a803746.zip
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 <sachin.kamat@linaro.org> Cc: Jingoo Han <jg1.han@samsung.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r--drivers/rtc/rtc-v3020.c4
1 files changed, 2 insertions, 2 deletions
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;
}