]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - Documentation/rtc.txt
rtc: make example code jump to done instead of return when ioctl not supported
[linux-2.6-omap-h63xx.git] / Documentation / rtc.txt
index 7c701b88d6d59dd4e1068a8ad22a4321704737a0..c931d613f6410cb7dce6732ac1f68ddaf6a3ee9d 100644 (file)
@@ -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);