diff options
Diffstat (limited to 'sys-utils/hwclock-rtc.c')
-rw-r--r-- | sys-utils/hwclock-rtc.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/sys-utils/hwclock-rtc.c b/sys-utils/hwclock-rtc.c index 9d3e5b983..580356117 100644 --- a/sys-utils/hwclock-rtc.c +++ b/sys-utils/hwclock-rtc.c @@ -458,13 +458,7 @@ int set_epoch_rtc(const struct hwclock_control *ctl) "with RTC_EPOCH_SET ioctl to %s.\n"), epoch, rtc_dev_name); if (ioctl(rtc_fd, RTC_EPOCH_SET, epoch) == -1) { - if (errno == EINVAL) - warnx(_("The kernel device driver for %s " - "does not have the RTC_EPOCH_SET ioctl."), - rtc_dev_name); - else - warn(_("ioctl(RTC_EPOCH_SET) to %s failed"), - rtc_dev_name); + warn(_("ioctl(RTC_EPOCH_SET) to %s failed"), rtc_dev_name); return 1; } |