mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
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 <[email protected]> Cc: Alessandro Zummo <[email protected]> Cc: Grant Likely <[email protected]> Cc: Rob Herring <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
f803f0d079
commit
076c726548
1 changed files with 1 additions and 4 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue