svn commit: r203761 - head/sys/ufs/ffs

Edward Tomasz Napierala trasz at FreeBSD.org
Wed Feb 10 18:56:49 UTC 2010


Author: trasz
Date: Wed Feb 10 18:56:49 2010
New Revision: 203761
URL: http://svn.freebsd.org/changeset/base/203761

Log:
  Remove unused variable.

Modified:
  head/sys/ufs/ffs/ffs_vfsops.c

Modified: head/sys/ufs/ffs/ffs_vfsops.c
==============================================================================
--- head/sys/ufs/ffs/ffs_vfsops.c	Wed Feb 10 18:20:20 2010	(r203760)
+++ head/sys/ufs/ffs/ffs_vfsops.c	Wed Feb 10 18:56:49 2010	(r203761)
@@ -138,7 +138,7 @@ ffs_mount(struct mount *mp)
 	struct ufsmount *ump = 0;
 	struct fs *fs;
 	int error, flags;
-	u_int mntorflags, mntandnotflags;
+	u_int mntorflags;
 	accmode_t accmode;
 	struct nameidata ndp;
 	char *fspec;
@@ -163,7 +163,6 @@ ffs_mount(struct mount *mp)
 		return (error);
 
 	mntorflags = 0;
-	mntandnotflags = 0;
 	if (vfs_getopt(mp->mnt_optnew, "acls", NULL, NULL) == 0)
 		mntorflags |= MNT_ACLS;
 
@@ -187,7 +186,7 @@ ffs_mount(struct mount *mp)
 	}
 
 	MNT_ILOCK(mp);
-	mp->mnt_flag = (mp->mnt_flag | mntorflags) & ~mntandnotflags;
+	mp->mnt_flag |= mntorflags;
 	MNT_IUNLOCK(mp);
 	/*
 	 * If updating, check whether changing from read-only to


More information about the svn-src-all mailing list