From 7a39a49c746adc08488b1403b5aeca1dbd4ce0e2 Mon Sep 17 00:00:00 2001 From: Hans-Christian Egtvedt Date: Tue, 17 Jul 2007 04:04:59 -0700 Subject: [PATCH] rtc: make example code jump to done instead of return when ioctl not supported Signed-off-by: Hans-Christian Egtvedt Cc: Haavard Skinnemoen Cc: David Brownell Cc: Alessandro Zummo Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Documentation/rtc.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.20.1