diff options
author | phk <phk@FreeBSD.org> | 1997-05-17 18:32:53 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1997-05-17 18:32:53 +0000 |
commit | 0419930c727ea15598703778eff566ba0d7ec7ed (patch) | |
tree | d2d451d2f8aec204e38ce49b4016d78cc2335a6e /sys/ufs | |
parent | 5d5eedc2d13c34d9558411abaf497892d239bb00 (diff) | |
download | FreeBSD-src-0419930c727ea15598703778eff566ba0d7ec7ed.zip FreeBSD-src-0419930c727ea15598703778eff566ba0d7ec7ed.tar.gz |
Remove redundant check for vp == dvp (done in VFS before calling).
Diffstat (limited to 'sys/ufs')
-rw-r--r-- | sys/ufs/ufs/ufs_vnops.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/sys/ufs/ufs/ufs_vnops.c b/sys/ufs/ufs/ufs_vnops.c index fdce65b..e1e6ebc 100644 --- a/sys/ufs/ufs/ufs_vnops.c +++ b/sys/ufs/ufs/ufs_vnops.c @@ -36,7 +36,7 @@ * SUCH DAMAGE. * * @(#)ufs_vnops.c 8.27 (Berkeley) 5/27/95 - * $Id: ufs_vnops.c,v 1.48 1997/03/22 06:53:45 bde Exp $ + * $Id: ufs_vnops.c,v 1.49 1997/03/31 12:02:53 peter Exp $ */ #include "opt_quota.h" @@ -1485,14 +1485,7 @@ ufs_rmdir(ap) ip = VTOI(vp); dp = VTOI(dvp); - /* - * No rmdir "." please. - */ - if (dp == ip) { - vrele(dvp); - vput(vp); - return (EINVAL); - } + /* * Verify the directory is empty (and valid). * (Rmdir ".." won't be valid since |