summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjeff <jeff@FreeBSD.org>2005-03-28 13:45:09 +0000
committerjeff <jeff@FreeBSD.org>2005-03-28 13:45:09 +0000
commitefb09df0e7e51325c02defc1b8fd5a08c4ab0f9a (patch)
tree8288cb07da1c9b1cc3b8c4bd4f6081c70181b5aa
parentd673a4826633faadb96b1af1bb89da1e0a2d8db0 (diff)
downloadFreeBSD-src-efb09df0e7e51325c02defc1b8fd5a08c4ab0f9a.zip
FreeBSD-src-efb09df0e7e51325c02defc1b8fd5a08c4ab0f9a.tar.gz
- Garbage collect an unused variable.
-rw-r--r--sys/fs/hpfs/hpfs_vnops.c6
-rw-r--r--sys/fs/ntfs/ntfs_vnops.c5
2 files changed, 2 insertions, 9 deletions
diff --git a/sys/fs/hpfs/hpfs_vnops.c b/sys/fs/hpfs/hpfs_vnops.c
index 909e057..721d891 100644
--- a/sys/fs/hpfs/hpfs_vnops.c
+++ b/sys/fs/hpfs/hpfs_vnops.c
@@ -1030,12 +1030,8 @@ hpfs_lookup(ap)
int error;
int nameiop = cnp->cn_nameiop;
int flags = cnp->cn_flags;
-#if HPFS_DEBUG
- int wantparent = flags & (LOCKPARENT|WANTPARENT);
-#endif
dprintf(("hpfs_lookup(0x%x, %s, %ld, %d): \n",
- dhp->h_no, cnp->cn_nameptr, cnp->cn_namelen,
- wantparent));
+ dhp->h_no, cnp->cn_nameptr, cnp->cn_namelen));
if (nameiop != CREATE && nameiop != DELETE && nameiop != LOOKUP) {
printf("hpfs_lookup: LOOKUP, DELETE and CREATE are only supported\n");
diff --git a/sys/fs/ntfs/ntfs_vnops.c b/sys/fs/ntfs/ntfs_vnops.c
index 5451175..6950a9d 100644
--- a/sys/fs/ntfs/ntfs_vnops.c
+++ b/sys/fs/ntfs/ntfs_vnops.c
@@ -622,12 +622,9 @@ ntfs_lookup(ap)
struct componentname *cnp = ap->a_cnp;
struct ucred *cred = cnp->cn_cred;
int error;
-#if NTFS_DEBUG
- int wantparent = cnp->cn_flags & (LOCKPARENT|WANTPARENT);
-#endif
dprintf(("ntfs_lookup: \"%.*s\" (%ld bytes) in %d, wp: %d \n",
(int)cnp->cn_namelen, cnp->cn_nameptr, cnp->cn_namelen,
- dip->i_number, wantparent));
+ dip->i_number));
error = VOP_ACCESS(dvp, VEXEC, cred, cnp->cn_thread);
if(error)
OpenPOWER on IntegriCloud