]> git.ipfire.org Git - thirdparty/util-linux.git/commit - sys-utils/mountpoint.c
mountpoint: simplify test condition [cppcheck]
authorSami Kerola <kerolasa@iki.fi>
Tue, 15 May 2018 19:14:05 +0000 (20:14 +0100)
committerKarel Zak <kzak@redhat.com>
Mon, 28 May 2018 11:39:18 +0000 (13:39 +0200)
commit8d69fd437ac2c4c0e193c52bbb65f515d2f6f363
treef27c7feda95d8082e471d6b5619bd43b2e0880b8
parent33b2e30284c915e952968051d6bdba4bb282f87e
mountpoint: simplify test condition [cppcheck]

[sys-utils/mountpoint.c:79]: (style) Redundant condition:
ctl->st.st_dev==pst.st_dev. 'A || (!A && B)' is equivalent to 'A || B'

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