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/ipcrm.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/ipcrm.c')
-rw-r--r-- | sys-utils/ipcrm.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys-utils/ipcrm.c b/sys-utils/ipcrm.c index 0b40f1539..7912feed9 100644 --- a/sys-utils/ipcrm.c +++ b/sys-utils/ipcrm.c @@ -407,9 +407,8 @@ int main(int argc, char **argv) } } - if (rm_all) - if (remove_all(what_all)) - ret++; + if (rm_all && remove_all(what_all)) + ret++; /* print usage if we still have some arguments left over */ if (optind < argc) { |