From 4d035ffc4d491779b2f0da019a43fe56c5fcbfe6 Mon Sep 17 00:00:00 2001 From: ws Date: Fri, 8 Sep 1995 13:52:23 +0000 Subject: [PATCH] No point in computing cn_hash here, as it gets immediately recomputed in lookup --- sys/nfs/nfs_subs.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sys/nfs/nfs_subs.c b/sys/nfs/nfs_subs.c index 957106776cb0..fcb997928384 100644 --- a/sys/nfs/nfs_subs.c +++ b/sys/nfs/nfs_subs.c @@ -1,4 +1,4 @@ -/* $NetBSD: nfs_subs.c,v 1.20 1995/06/02 18:35:50 mycroft Exp $ */ +/* $NetBSD: nfs_subs.c,v 1.21 1995/09/08 13:52:23 ws Exp $ */ /* * Copyright (c) 1989, 1993 @@ -891,7 +891,6 @@ nfs_namei(ndp, fhp, len, slp, nam, mdp, dposp, p) tocp = cnp->cn_pnbuf; md = *mdp; rem = mtod(md, caddr_t) + md->m_len - fromcp; - cnp->cn_hash = 0; for (i = 0; i < len; i++) { while (rem == 0) { md = md->m_next; @@ -906,7 +905,6 @@ nfs_namei(ndp, fhp, len, slp, nam, mdp, dposp, p) error = EINVAL; goto out; } - cnp->cn_hash += (unsigned char)*fromcp; *tocp++ = *fromcp++; rem--; }