Skip to content

Commit

Permalink
rtc: make example code jump to done instead of return when ioctl not …
Browse files Browse the repository at this point in the history
…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>
  • Loading branch information
Hans-Christian Egtvedt authored and Linus Torvalds committed Jul 17, 2007
1 parent c00593f commit 7a39a49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Documentation/rtc.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 7a39a49

Please sign in to comment.