Patchwork [01/26] drivers/rtc/rtc-v3020.c: Remove redundant goto

login
register
mail settings
Submitter Sachin Kamat
Date May 3, 2013, 6:20 a.m.
Message ID <1367562076-25713-2-git-send-email-sachin.kamat@linaro.org>
Download mbox | patch
Permalink /patch/241177/
State New
Headers show

Comments

Sachin Kamat - May 3, 2013, 6:20 a.m.
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>
---
 drivers/rtc/rtc-v3020.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Patch

diff --git a/drivers/rtc/rtc-v3020.c b/drivers/rtc/rtc-v3020.c
index d87878e..97ec2cb 100644
--- a/drivers/rtc/rtc-v3020.c
+++ b/drivers/rtc/rtc-v3020.c
@@ -307,7 +307,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 */
@@ -351,7 +351,7 @@  static int rtc_probe(struct platform_device *pdev)
 
 err_io:
 	chip->ops->unmap_io(chip);
-err_chip:
+
 	return retval;
 }