]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
hwclock: fix indentation
authorŁukasz Stelmach <l.stelmach@samsung.com>
Tue, 16 Mar 2021 11:53:13 +0000 (12:53 +0100)
committerKarel Zak <kzak@redhat.com>
Tue, 16 Mar 2021 13:23:48 +0000 (14:23 +0100)
Fixes: 042f62dfc ("[clang-tidy] do not use else after return")
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
sys-utils/hwclock-rtc.c

index 163f04e7a5e83d10c6fff2f6886ede2d648a3f16..7f1f0b6634f27d91254067f1ce70c967349865a7 100644 (file)
@@ -294,12 +294,12 @@ static int synchronize_to_clock_tick_rtc(const struct hwclock_control *ctl)
                if (rc == -1)
                        warn(_("ioctl() to %s to turn off update interrupts failed"),
                             rtc_dev_name);
-               } else if (errno == ENOTTY || errno == EINVAL) {
-                       /* rtc ioctl interrupts are unimplemented */
-                       ret = busywait_for_rtc_clock_tick(ctl, rtc_fd);
-               } else
-                       warn(_("ioctl(%d, RTC_UIE_ON, 0) to %s failed"),
-                            rtc_fd, rtc_dev_name);
+       } else if (errno == ENOTTY || errno == EINVAL) {
+               /* rtc ioctl interrupts are unimplemented */
+               ret = busywait_for_rtc_clock_tick(ctl, rtc_fd);
+       } else
+               warn(_("ioctl(%d, RTC_UIE_ON, 0) to %s failed"),
+                    rtc_fd, rtc_dev_name);
        return ret;
 }