From: Tushar Behera Date: Tue, 18 Dec 2012 00:02:45 +0000 (-0800) Subject: drivers/rtc/rtc-s3c.c: remove unnecessary err_nores label X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=076c7265488cc4016c6502f3f9d8dbf1e97fd147;p=openwrt%2Fstaging%2Fblogic.git drivers/rtc/rtc-s3c.c: remove unnecessary err_nores label err_nores label redirects to a simple return statement. Move the return statement to caller location and remove the label. Signed-off-by: Tushar Behera Cc: Alessandro Zummo Cc: Grant Likely Cc: Rob Herring Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/rtc/rtc-s3c.c b/drivers/rtc/rtc-s3c.c index a7a2a998fa91..d9da51193bc3 100644 --- a/drivers/rtc/rtc-s3c.c +++ b/drivers/rtc/rtc-s3c.c @@ -501,8 +501,7 @@ static int __devinit s3c_rtc_probe(struct platform_device *pdev) if (s3c_rtc_mem == NULL) { dev_err(&pdev->dev, "failed to reserve memory region\n"); - ret = -ENOENT; - goto err_nores; + return -ENOENT; } s3c_rtc_base = ioremap(res->start, resource_size(res)); @@ -612,8 +611,6 @@ static int __devinit s3c_rtc_probe(struct platform_device *pdev) err_nomap: release_resource(s3c_rtc_mem); - - err_nores: return ret; }