diff options
author | Hans-Christian Egtvedt <hcegtvedt@atmel.com> | 2007-07-17 04:04:59 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-07-17 10:23:08 -0700 |
commit | 7a39a49c746adc08488b1403b5aeca1dbd4ce0e2 (patch) | |
tree | 2b313c27077df82e2a6fe8593ef13ebff0781dbd /Documentation/rtc.txt | |
parent | c00593f6f816e5cfa6d193a2561ca77541f71424 (diff) | |
download | kernel_samsung_tuna-7a39a49c746adc08488b1403b5aeca1dbd4ce0e2.zip kernel_samsung_tuna-7a39a49c746adc08488b1403b5aeca1dbd4ce0e2.tar.gz kernel_samsung_tuna-7a39a49c746adc08488b1403b5aeca1dbd4ce0e2.tar.bz2 |
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>
Diffstat (limited to 'Documentation/rtc.txt')
-rw-r--r-- | Documentation/rtc.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Documentation/rtc.txt b/Documentation/rtc.txt index 7c701b8..c931d61 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); |