diff options
author | J William Piggott | 2017-03-26 17:56:42 +0200 |
---|---|---|
committer | J William Piggott | 2017-03-31 16:04:53 +0200 |
commit | af68bd014ab4f0eef8ef34f69365905385fd3b21 (patch) | |
tree | 374d37bc79ad6796bbc1b156799b54085a5270e2 /sys-utils/hwclock-rtc.c | |
parent | hwclock: remove dead cmos code (diff) | |
download | kernel-qcow2-util-linux-af68bd014ab4f0eef8ef34f69365905385fd3b21.tar.gz kernel-qcow2-util-linux-af68bd014ab4f0eef8ef34f69365905385fd3b21.tar.xz kernel-qcow2-util-linux-af68bd014ab4f0eef8ef34f69365905385fd3b21.zip |
hwclock: remove unused 'silent' arg
The 'silent' argument for get_epoch_rtc() was used
to silence error messages when querying the rtc
driver for an alpha epoch while using cmos direct
access. Alpha cmos has since been removed so
'silent' is no longer used.
* sys-utils/hwclock.h: remove 'silent' argument
* sys-utils/hwclock.c: same
* sys-utils/hwclock-rtc.c: same
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 | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/sys-utils/hwclock-rtc.c b/sys-utils/hwclock-rtc.c index 077db73e7..f2728284d 100644 --- a/sys-utils/hwclock-rtc.c +++ b/sys-utils/hwclock-rtc.c @@ -396,27 +396,23 @@ struct clock_ops *probe_for_rtc_clock(const struct hwclock_control *ctl) /* * Get the Hardware Clock epoch setting from the kernel. */ -int get_epoch_rtc(const struct hwclock_control *ctl, unsigned long *epoch_p, - int silent) +int get_epoch_rtc(const struct hwclock_control *ctl, unsigned long *epoch_p) { int rtc_fd; rtc_fd = open_rtc(ctl); if (rtc_fd < 0) { - if (!silent) { - if (errno == ENOENT) - warnx(_ - ("To manipulate the epoch value in the kernel, we must " - "access the Linux 'rtc' device driver via the device special " - "file. This file does not exist on this system.")); - else - warn(_("cannot open rtc device")); - } + if (errno == ENOENT) + warnx(_ + ("To manipulate the epoch value in the kernel, we must " + "access the Linux 'rtc' device driver via the device special " + "file. This file does not exist on this system.")); + else + warn(_("cannot open rtc device")); return 1; } if (ioctl(rtc_fd, RTC_EPOCH_READ, epoch_p) == -1) { - if (!silent) warn(_("ioctl(RTC_EPOCH_READ) to %s failed"), rtc_dev_name); return 1; |