Remove dead code, fixing coverity ID 745. nameiop can only be CREATE

or DELETE here. This code got cut-n-pasted from ufs_loolup.c, but
is only used in whiteout support. ext2fs doesn't support whiteout.
This commit is contained in:
bouyer 2006-03-18 13:49:19 +00:00
parent 80b13f6f4e
commit b1dc0ca141

View File

@ -1,4 +1,4 @@
/* $NetBSD: ext2fs_lookup.c,v 1.41 2006/03/17 23:29:11 christos Exp $ */
/* $NetBSD: ext2fs_lookup.c,v 1.42 2006/03/18 13:49:19 bouyer Exp $ */
/*
* Modified for NetBSD 1.2E
@ -48,7 +48,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: ext2fs_lookup.c,v 1.41 2006/03/17 23:29:11 christos Exp $");
__KERNEL_RCSID(0, "$NetBSD: ext2fs_lookup.c,v 1.42 2006/03/18 13:49:19 bouyer Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -498,12 +498,6 @@ searchloop:
dp->i_offset = roundup(ext2fs_size(dp), dirblksiz);
dp->i_count = 0;
enduseful = dp->i_offset;
} else if (nameiop == DELETE) {
dp->i_offset = slotoffset;
if ((dp->i_offset & (dirblksiz - 1)) == 0)
dp->i_count = 0;
else
dp->i_count = dp->i_offset - prevoff;
} else {
dp->i_offset = slotoffset;
dp->i_count = slotsize;