Skip to content

Commit

Permalink
drivers/rtc/rtc-s3c.c: remove unnecessary err_nores label
Browse files Browse the repository at this point in the history
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>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Tushar Behera authored and Linus Torvalds committed Dec 18, 2012
1 parent f803f0d commit 076c726
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions drivers/rtc/rtc-s3c.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down Expand Up @@ -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;
}

Expand Down

0 comments on commit 076c726

Please sign in to comment.