diff options
author | Poul-Henning Kamp <phk@FreeBSD.org> | 1994-10-08 06:57:29 +0000 |
---|---|---|
committer | Poul-Henning Kamp <phk@FreeBSD.org> | 1994-10-08 06:57:29 +0000 |
commit | 0f954e5d09fcdf4d7753dbc0c7315f2d7cc93607 (patch) | |
tree | b052bb50ffa6a013d919c68a25235f4df098267c /sys/ufs/ufs/ufs_vfsops.c | |
parent | 80fb3d79f6be945c4fbdfae84f12172de827407f (diff) | |
download | src-0f954e5d09fcdf4d7753dbc0c7315f2d7cc93607.tar.gz src-0f954e5d09fcdf4d7753dbc0c7315f2d7cc93607.zip |
POSSIBLE BOGUS CODE found, (related to dos-partitions) in ufs_disksubr.c,
look for CC_WALL.
Cosmetics, a couple of unused vars.
Notes
Notes:
svn path=/head/; revision=3427
Diffstat (limited to 'sys/ufs/ufs/ufs_vfsops.c')
-rw-r--r-- | sys/ufs/ufs/ufs_vfsops.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/sys/ufs/ufs/ufs_vfsops.c b/sys/ufs/ufs/ufs_vfsops.c index 1b82917f46b0..c7adf84319d4 100644 --- a/sys/ufs/ufs/ufs_vfsops.c +++ b/sys/ufs/ufs/ufs_vfsops.c @@ -36,7 +36,7 @@ * SUCH DAMAGE. * * @(#)ufs_vfsops.c 8.4 (Berkeley) 4/16/94 - * $Id$ + * $Id: ufs_vfsops.c,v 1.2 1994/08/02 07:55:01 davidg Exp $ */ #include <sys/param.h> @@ -85,7 +85,8 @@ ufs_root(mp, vpp) struct vnode *nvp; int error; - if (error = VFS_VGET(mp, (ino_t)ROOTINO, &nvp)) + error = VFS_VGET(mp, (ino_t)ROOTINO, &nvp); + if (error) return (error); *vpp = nvp; return (0); @@ -102,11 +103,11 @@ ufs_quotactl(mp, cmds, uid, arg, p) caddr_t arg; struct proc *p; { - int cmd, type, error; - #ifndef QUOTA return (EOPNOTSUPP); #else + int cmd, type, error; + if (uid == -1) uid = p->p_cred->p_ruid; cmd = cmds >> SUBCMDSHIFT; @@ -190,7 +191,8 @@ ufs_check_export(mp, ufhp, nam, vpp, exflagsp, credanonp) if (np == NULL) return (EACCES); - if (error = VFS_VGET(mp, ufhp->ufid_ino, &nvp)) { + error = VFS_VGET(mp, ufhp->ufid_ino, &nvp); + if (error) { *vpp = NULLVP; return (error); } |