Commit 7a39a49c746adc08488b1403b5aeca1dbd4ce0e2

Authored by Hans-Christian Egtvedt
Committed by Linus Torvalds
1 parent c00593f6f8

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>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

Documentation/rtc.txt
... ... @@ -385,7 +385,7 @@
385 385 /* not all RTCs support periodic IRQs */
386 386 if (errno == ENOTTY) {
387 387 fprintf(stderr, "\nNo periodic IRQ support\n");
388   - return 0;
  388 + goto done;
389 389 }
390 390 perror("RTC_IRQP_READ ioctl");
391 391 exit(errno);