From: J William Piggott Date: Tue, 21 Apr 2015 20:46:23 +0000 (-0400) Subject: hwclock: remove dead code X-Git-Tag: v2.27-rc1~260 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9fb890c3c5fccf9a9a02b251dfa5332f427d4c78;p=thirdparty%2Futil-linux.git hwclock: remove dead code Removes never used #ifdef dead code. Reported-by: Karel Zak Signed-off-by: J William Piggott --- diff --git a/sys-utils/hwclock-rtc.c b/sys-utils/hwclock-rtc.c index b5ecc5a3fd..91721f3f35 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)