diff options
author | Sami Kerola | 2016-07-17 12:30:40 +0200 |
---|---|---|
committer | Sami Kerola | 2017-02-05 00:39:37 +0100 |
commit | c6ea9ef6cbe3a7ec38f550b18239fc1b27eb5e41 (patch) | |
tree | c4a3a463b095221dba5a444e34a53babde549675 /sys-utils/hwclock-cmos.c | |
parent | hwclock: move error messages to determine_clock_access_method() (diff) | |
download | kernel-qcow2-util-linux-c6ea9ef6cbe3a7ec38f550b18239fc1b27eb5e41.tar.gz kernel-qcow2-util-linux-c6ea9ef6cbe3a7ec38f550b18239fc1b27eb5e41.tar.xz kernel-qcow2-util-linux-c6ea9ef6cbe3a7ec38f550b18239fc1b27eb5e41.zip |
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>
Diffstat (limited to 'sys-utils/hwclock-cmos.c')
-rw-r--r-- | sys-utils/hwclock-cmos.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys-utils/hwclock-cmos.c b/sys-utils/hwclock-cmos.c index 9d9a42a8b..6595725fd 100644 --- a/sys-utils/hwclock-cmos.c +++ b/sys-utils/hwclock-cmos.c @@ -269,7 +269,7 @@ void set_cmos_access(const struct hwclock_control *ctl) } #endif /* __alpha */ -#if __alpha__ +#ifdef __alpha__ /* * The Alpha doesn't allow user-level code to disable interrupts (for good * reasons). Instead, we ensure atomic operation by performing the operation |