Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 076c7265 authored by Tushar Behera's avatar Tushar Behera Committed by Linus Torvalds
Browse files

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: default avatarTushar 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: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent f803f0d0
Loading
Loading
Loading
Loading
+1 −4
Original line number Original line Diff line number Diff line
@@ -501,8 +501,7 @@ static int __devinit s3c_rtc_probe(struct platform_device *pdev)


	if (s3c_rtc_mem == NULL) {
	if (s3c_rtc_mem == NULL) {
		dev_err(&pdev->dev, "failed to reserve memory region\n");
		dev_err(&pdev->dev, "failed to reserve memory region\n");
		ret = -ENOENT;
		return -ENOENT;
		goto err_nores;
	}
	}


	s3c_rtc_base = ioremap(res->start, resource_size(res));
	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:
 err_nomap:
	release_resource(s3c_rtc_mem);
	release_resource(s3c_rtc_mem);

 err_nores:
	return ret;
	return ret;
}
}