From: Hans-Christian Egtvedt <hcegtvedt@atmel.com>
Date: Tue, 17 Jul 2007 11:04:59 +0000 (-0700)
Subject: rtc: make example code jump to done instead of return when ioctl not supported
X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=7a39a49c746adc08488b1403b5aeca1dbd4ce0e2;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git

rtc: make example code jump to done instead of return when ioctl not supported

Signed-off-by: Hans-Christian Egtvedt <hcegtvedt@atmel.com>
Cc: Haavard Skinnemoen <hskinnemoen@atmel.com>
Cc: David Brownell <david-b@pacbell.net>
Cc: Alessandro Zummo <a.zummo@towertech.it>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
---

diff --git a/Documentation/rtc.txt b/Documentation/rtc.txt
index 7c701b88d6d5..c931d613f641 100644
--- a/Documentation/rtc.txt
+++ b/Documentation/rtc.txt
@@ -385,7 +385,7 @@ test_PIE:
 		/* not all RTCs support periodic IRQs */
 		if (errno == ENOTTY) {
 			fprintf(stderr, "\nNo periodic IRQ support\n");
-			return 0;
+			goto done;
 		}
 		perror("RTC_IRQP_READ ioctl");
 		exit(errno);