]> git.ipfire.org Git - thirdparty/util-linux.git/commit
hwclock: remove dead code and other minor fixes
authorSami Kerola <kerolasa@iki.fi>
Sun, 17 Jul 2016 10:30:40 +0000 (11:30 +0100)
committerSami Kerola <kerolasa@iki.fi>
Sat, 4 Feb 2017 23:39:37 +0000 (23:39 +0000)
commitc6ea9ef6cbe3a7ec38f550b18239fc1b27eb5e41
treec4a3a463b095221dba5a444e34a53babde549675
parent8f729d60fa6d0c84780b7af31adce599694869c8
hwclock: remove dead code and other minor fixes

Use #ifdef rather than #if to avoid undefined preprocessor identifier
warning.

Remove dead code.  The #if 0 ensured the code has not been used for long
time, which is good because the linux/mc146818rtc.h is not been part of
user-api for long time.

Value of the adjtime_p->last_calib_time is checked if it has value of zero,
so testing none-zero bit later is necessarily true, and therefore does not
need to be checked.

And at the and remove unnecessary boolean variable.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
sys-utils/hwclock-cmos.c
sys-utils/hwclock-rtc.c
sys-utils/hwclock.c