]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
hwclock: remove dead code
authorJ William Piggott <elseifthen@gmx.com>
Tue, 21 Apr 2015 20:46:23 +0000 (16:46 -0400)
committerJ William Piggott <elseifthen@gmx.com>
Tue, 21 Apr 2015 20:46:23 +0000 (16:46 -0400)
Removes never used #ifdef dead code.

Reported-by: Karel Zak <kzak@redhat.com>
Signed-off-by: J William Piggott <elseifthen@gmx.com>
sys-utils/hwclock-rtc.c

index b5ecc5a3fd54ddb84877c70df49dd70fdd06d306..91721f3f3541fdd5398b885298ea5437ba07f1ce 100644 (file)
@@ -280,18 +280,6 @@ static int synchronize_to_clock_tick_rtc(void)
                                       rtc_dev_name);
                        ret = busywait_for_rtc_clock_tick(rtc_fd);
                } else if (rc == 0) {
-#ifdef Wait_until_update_interrupt
-                       unsigned long dummy;
-
-                       /* this blocks until the next update interrupt */
-                       rc = read(rtc_fd, &dummy, sizeof(dummy));
-                       ret = 1;
-                       if (rc == -1)
-                               warn(_("read() to %s to wait for clock tick failed"),
-                                    rtc_dev_name);
-                       else
-                               ret = 0;
-#else
                        /*
                         * Just reading rtc_fd fails on broken hardware: no
                         * update interrupt comes and a bootscript with a
@@ -319,8 +307,6 @@ static int synchronize_to_clock_tick_rtc(void)
                                               rtc_dev_name);
                        } else
                                ret = 0;
-#endif
-
                        /* Turn off update interrupts */
                        rc = ioctl(rtc_fd, RTC_UIE_OFF, 0);
                        if (rc == -1)