From 8a40593f4d400b9100be73c33ea884adf9929ea9 Mon Sep 17 00:00:00 2001 From: Poul-Henning Kamp Date: Sat, 17 May 1997 18:32:53 +0000 Subject: Remove redundant check for vp == dvp (done in VFS before calling). --- sys/ufs/ufs/ufs_vnops.c | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'sys/ufs') diff --git a/sys/ufs/ufs/ufs_vnops.c b/sys/ufs/ufs/ufs_vnops.c index fdce65b667e5..e1e6ebc9a289 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 -- cgit v1.3