Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Hans-Christian Egtvedt and committed by
Linus Torvalds
7a39a49c c00593f6

+1 -1
+1 -1
Documentation/rtc.txt
··· 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);