diff options
author | Sami Kerola | 2016-07-04 23:09:10 +0200 |
---|---|---|
committer | Sami Kerola | 2016-07-21 22:14:33 +0200 |
commit | 74ce680a3ef90503b26da0a34f04cf725f6c5beb (patch) | |
tree | 307baa695e1c36c7a7855718468d9913ddf96bc1 /sys-utils/rtcwake.c | |
parent | agetty: call uname() only when necessary (diff) | |
download | kernel-qcow2-util-linux-74ce680a3ef90503b26da0a34f04cf725f6c5beb.tar.gz kernel-qcow2-util-linux-74ce680a3ef90503b26da0a34f04cf725f6c5beb.tar.xz kernel-qcow2-util-linux-74ce680a3ef90503b26da0a34f04cf725f6c5beb.zip |
misc: simplify if clauses [oclint]
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'sys-utils/rtcwake.c')
-rw-r--r-- | sys-utils/rtcwake.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/sys-utils/rtcwake.c b/sys-utils/rtcwake.c index 72894eab8..053baf5ef 100644 --- a/sys-utils/rtcwake.c +++ b/sys-utils/rtcwake.c @@ -501,12 +501,9 @@ int main(int argc, char **argv) } } - if (ctl.clock_mode == CM_AUTO) { - if (read_clock_mode(&ctl) < 0) { - printf(_("%s: assuming RTC uses UTC ...\n"), - program_invocation_short_name); - ctl.clock_mode = CM_UTC; - } + if (ctl.clock_mode == CM_AUTO && read_clock_mode(&ctl) < 0) { + printf(_("%s: assuming RTC uses UTC ...\n"), program_invocation_short_name); + ctl.clock_mode = CM_UTC; } if (ctl.verbose) |