Linux MM tree latest commits
 help / color / mirror / Atom feed
* [merged] drivers-rtc-rtc-s3cc-remove-unnecessary-err_nores-label.patch removed from -mm tree
@ 2012-12-18 20:08 akpm
  0 siblings, 0 replies; only message in thread
From: akpm @ 2012-12-18 20:08 UTC (permalink / raw)
  To: tushar.behera, a.zummo, grant.likely, rob.herring, mm-commits


The patch titled
     Subject: drivers/rtc/rtc-s3c.c: remove unnecessary err_nores label
has been removed from the -mm tree.  Its filename was
     drivers-rtc-rtc-s3cc-remove-unnecessary-err_nores-label.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
From: Tushar Behera <tushar.behera@linaro.org>
Subject: 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 <tushar.behera@linaro.org>
Cc: Alessandro Zummo <a.zummo@towertech.it>
Cc: Grant Likely <grant.likely@secretlab.ca>
Cc: Rob Herring <rob.herring@calxeda.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 drivers/rtc/rtc-s3c.c |    5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff -puN drivers/rtc/rtc-s3c.c~drivers-rtc-rtc-s3cc-remove-unnecessary-err_nores-label drivers/rtc/rtc-s3c.c
--- a/drivers/rtc/rtc-s3c.c~drivers-rtc-rtc-s3cc-remove-unnecessary-err_nores-label
+++ a/drivers/rtc/rtc-s3c.c
@@ -501,8 +501,7 @@ static int __devinit s3c_rtc_probe(struc
 
 	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(struc
 
  err_nomap:
 	release_resource(s3c_rtc_mem);

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2012-12-18 20:08 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-18 20:08 [merged] drivers-rtc-rtc-s3cc-remove-unnecessary-err_nores-label.patch removed from -mm tree akpm

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox