diff options
author | J William Piggott | 2015-04-21 22:46:23 +0200 |
---|---|---|
committer | J William Piggott | 2015-04-21 22:46:23 +0200 |
commit | 9fb890c3c5fccf9a9a02b251dfa5332f427d4c78 (patch) | |
tree | ba9bce8893c074c5192f1271f980ac349148b3ec /sys-utils/hwclock-rtc.c | |
parent | hwclock: regression fix (diff) | |
download | kernel-qcow2-util-linux-9fb890c3c5fccf9a9a02b251dfa5332f427d4c78.tar.gz kernel-qcow2-util-linux-9fb890c3c5fccf9a9a02b251dfa5332f427d4c78.tar.xz kernel-qcow2-util-linux-9fb890c3c5fccf9a9a02b251dfa5332f427d4c78.zip |
hwclock: remove dead code
Removes never used #ifdef dead code.
Reported-by: Karel Zak <kzak@redhat.com>
Signed-off-by: J William Piggott <elseifthen@gmx.com>
Diffstat (limited to 'sys-utils/hwclock-rtc.c')
-rw-r--r-- | sys-utils/hwclock-rtc.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/sys-utils/hwclock-rtc.c b/sys-utils/hwclock-rtc.c index b5ecc5a3f..91721f3f3 100644 --- a/sys-utils/hwclock-rtc.c +++ b/sys-utils/hwclock-rtc.c @@ -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) |