diff options
author | Visa Hankala <visa@cvs.openbsd.org> | 2018-06-21 14:17:24 +0000 |
---|---|---|
committer | Visa Hankala <visa@cvs.openbsd.org> | 2018-06-21 14:17:24 +0000 |
commit | 6db88b4a178a94be5b99ce5621083450cb52032f (patch) | |
tree | 8db6b7f7a6e1ff27af9006f32ef80e7640ff61c4 /sys/ufs/ext2fs | |
parent | d780a14dcf52ccdcff55fc3d17671d34951652af (diff) |
Drop redundant "node == parent node" checks from VOP_RMDIR()
implementations. Rely on the VFS layer to do the checking.
OK mpi@, helg@
Diffstat (limited to 'sys/ufs/ext2fs')
-rw-r--r-- | sys/ufs/ext2fs/ext2fs_vnops.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/sys/ufs/ext2fs/ext2fs_vnops.c b/sys/ufs/ext2fs/ext2fs_vnops.c index bb68bce04df..ba9d53f3fd3 100644 --- a/sys/ufs/ext2fs/ext2fs_vnops.c +++ b/sys/ufs/ext2fs/ext2fs_vnops.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ext2fs_vnops.c,v 1.83 2018/06/07 13:37:28 visa Exp $ */ +/* $OpenBSD: ext2fs_vnops.c,v 1.84 2018/06/21 14:17:23 visa Exp $ */ /* $NetBSD: ext2fs_vnops.c,v 1.1 1997/06/11 09:34:09 bouyer Exp $ */ /* @@ -1013,14 +1013,6 @@ ext2fs_rmdir(void *v) 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 * ".." will contain a reference to |