You'd think there'd be a compiler warning for "pointless if", wouldn't you?

This commit is contained in:
Rob Landley 2006-04-04 16:56:04 +00:00
parent 3b84dfc2a8
commit ab8736064b

View File

@ -291,11 +291,11 @@ static int singlemount(struct mntent *mp)
} }
} }
// Look at the file. (Not found isn't a failure for remount.) // Look at the file. (Not found isn't a failure for remount, or for
// a synthetic filesystem like proc or sysfs.)
if (lstat(mp->mnt_fsname, &st)); if (lstat(mp->mnt_fsname, &st));
else if (!(vfsflags & (MS_REMOUNT | MS_BIND | MS_MOVE))) {
if (!(vfsflags & (MS_REMOUNT | MS_BIND | MS_MOVE))) {
// Do we need to allocate a loopback device for it? // Do we need to allocate a loopback device for it?
if (ENABLE_FEATURE_MOUNT_LOOP && S_ISREG(st.st_mode)) { if (ENABLE_FEATURE_MOUNT_LOOP && S_ISREG(st.st_mode)) {