summaryrefslogtreecommitdiffstats
path: root/sys-utils/hwclock-rtc.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys-utils/hwclock-rtc.c')
-rw-r--r--sys-utils/hwclock-rtc.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/sys-utils/hwclock-rtc.c b/sys-utils/hwclock-rtc.c
index 78f42aa4f..b5ecc5a3f 100644
--- a/sys-utils/hwclock-rtc.c
+++ b/sys-utils/hwclock-rtc.c
@@ -313,10 +313,11 @@ static int synchronize_to_clock_tick_rtc(void)
if (rc == -1)
warn(_("select() to %s to wait for clock tick failed"),
rtc_dev_name);
- else if (rc == 0 && debug)
- printf(_("select() to %s to wait for clock tick timed out"),
- rtc_dev_name);
- else
+ else if (rc == 0) {
+ if (debug)
+ printf(_("select() to %s to wait for clock tick timed out"),
+ rtc_dev_name);
+ } else
ret = 0;
#endif