From 803b3a091c225d48395508a8f9ffa6e08cbddc5b Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Tue, 14 May 2024 21:23:00 +0200 Subject: Merging upstream version 2.40.1. Signed-off-by: Daniel Baumann --- sys-utils/hwclock-rtc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys-utils/hwclock-rtc.c') diff --git a/sys-utils/hwclock-rtc.c b/sys-utils/hwclock-rtc.c index 113d4e8..659a7a7 100644 --- a/sys-utils/hwclock-rtc.c +++ b/sys-utils/hwclock-rtc.c @@ -505,7 +505,7 @@ int set_param_rtc(const struct hwclock_control *ctl, const char *opt0) rtc_fd = open_rtc(ctl); if (rtc_fd < 0) { warnx(_("cannot open %s"), rtc_dev_name); - return 1; + goto done; } if (ioctl(rtc_fd, RTC_PARAM_SET, ¶m) == -1) { -- cgit v1.2.3