Patchwork [1/2] drivers/rtc/rtc-s3c.c: Remove unnecessary err_nores label

login
register
mail settings
Submitter Tushar Behera
Date Nov. 23, 2012, 7 a.m.
Message ID <1353654019-1099-2-git-send-email-tushar.behera@linaro.org>
Download mbox | patch
Permalink /patch/201245/
State New
Headers show

Comments

Tushar Behera - Nov. 23, 2012, 7 a.m.
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 <tushar.behera@linaro.org>
---
 drivers/rtc/rtc-s3c.c |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)

Patch

diff --git a/drivers/rtc/rtc-s3c.c b/drivers/rtc/rtc-s3c.c
index 77823d2..df7b478 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;
 }