summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys-utils/mountpoint.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys-utils/mountpoint.c b/sys-utils/mountpoint.c
index 808cfb9d0..00a74daf0 100644
--- a/sys-utils/mountpoint.c
+++ b/sys-utils/mountpoint.c
@@ -76,8 +76,7 @@ static int dir_to_device(struct mountpoint_control *ctl)
if (stat(buf, &pst) !=0)
return -1;
- if ((ctl->st.st_dev != pst.st_dev) ||
- (ctl->st.st_dev == pst.st_dev && ctl->st.st_ino == pst.st_ino)) {
+ if (ctl->st.st_dev != pst.st_dev || ctl->st.st_ino == pst.st_ino) {
ctl->dev = ctl->st.st_dev;
return 0;
}