]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
drivers/rtc/rtc-v3020.c: remove redundant goto
authorSachin Kamat <sachin.kamat@linaro.org>
Thu, 9 May 2013 23:57:27 +0000 (09:57 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 21 May 2013 04:17:46 +0000 (14:17 +1000)
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>
drivers/rtc/rtc-v3020.c

index 6e0cba8f47d5e70f61dc089d8ee127b49c8d8597..4ee0e63ebba71b7cd072227ea059185cd99d529f 100644 (file)
@@ -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;
 }