]> git.ipfire.org Git - thirdparty/util-linux.git/commit
switch_root: simplify code and reduce indentation [oclint]
authorSami Kerola <kerolasa@iki.fi>
Sun, 3 Jul 2016 11:30:46 +0000 (12:30 +0100)
committerSami Kerola <kerolasa@iki.fi>
Thu, 21 Jul 2016 20:14:33 +0000 (21:14 +0100)
commit341154da281916a0cc04ec0d4712296bc3e7e69a
tree29ddb3e30b39ebe7d04eac8c11925a9e78971b61
parent74ce680a3ef90503b26da0a34f04cf725f6c5beb
switch_root: simplify code and reduce indentation [oclint]

The if statement in line 162 already ensures value of cfd to be 0 or
greater, so the later if is not needed.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
sys-utils/switch_root.c