Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/nfs Remove so variables that are only ever set and never...



details:   https://anonhg.NetBSD.org/src/rev/51e4331c8f99
branches:  trunk
changeset: 516036:51e4331c8f99
user:      simonb <simonb%NetBSD.org@localhost>
date:      Sat Oct 13 23:25:58 2001 +0000

description:
Remove so variables that are only ever set and never referenced.

diffstat:

 sys/nfs/nfs_bio.c       |  4 +---
 sys/nfs/nfs_bootparam.c |  5 ++---
 sys/nfs/nfs_vnops.c     |  4 +---
 3 files changed, 4 insertions(+), 9 deletions(-)

diffs (76 lines):

diff -r fa20944f83b7 -r 51e4331c8f99 sys/nfs/nfs_bio.c
--- a/sys/nfs/nfs_bio.c Sat Oct 13 22:59:16 2001 +0000
+++ b/sys/nfs/nfs_bio.c Sat Oct 13 23:25:58 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: nfs_bio.c,v 1.69 2001/09/15 20:36:39 chs Exp $ */
+/*     $NetBSD: nfs_bio.c,v 1.70 2001/10/13 23:25:58 simonb Exp $      */
 
 /*
  * Copyright (c) 1989, 1993
@@ -80,7 +80,6 @@
        struct ucred *cred;
 {
        struct nfsnode *np = VTONFS(vp);
-       int biosize;
        struct buf *bp = NULL, *rabp;
        struct vattr vattr;
        struct proc *p;
@@ -109,7 +108,6 @@
        if (vp->v_type != VDIR &&
            (uio->uio_offset + uio->uio_resid) > nmp->nm_maxfilesize)
                return (EFBIG);
-       biosize = nmp->nm_rsize;
 
        /*
         * For nfs, cache consistency can only be maintained approximately.
diff -r fa20944f83b7 -r 51e4331c8f99 sys/nfs/nfs_bootparam.c
--- a/sys/nfs/nfs_bootparam.c   Sat Oct 13 22:59:16 2001 +0000
+++ b/sys/nfs/nfs_bootparam.c   Sat Oct 13 23:25:58 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: nfs_bootparam.c,v 1.17 2000/10/03 17:18:15 chs Exp $   */
+/*     $NetBSD: nfs_bootparam.c,v 1.18 2001/10/13 23:25:58 simonb Exp $        */
 
 /*-
  * Copyright (c) 1995, 1997 The NetBSD Foundation, Inc.
@@ -309,7 +309,7 @@
 
        struct mbuf *m, *from;
        struct sockaddr_in *sin;
-       int error, msg_len;
+       int error;
        int16_t port;
 
        /*
@@ -346,7 +346,6 @@
        }
        reply = mtod(m, struct callit_reply *);
        port = fxdr_unsigned(u_int32_t, reply->port);
-       msg_len = fxdr_unsigned(u_int32_t, reply->encap_len);
        m_adj(m, sizeof(*reply));
 
        /*
diff -r fa20944f83b7 -r 51e4331c8f99 sys/nfs/nfs_vnops.c
--- a/sys/nfs/nfs_vnops.c       Sat Oct 13 22:59:16 2001 +0000
+++ b/sys/nfs/nfs_vnops.c       Sat Oct 13 23:25:58 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: nfs_vnops.c,v 1.140 2001/09/22 22:35:19 sommerfeld Exp $       */
+/*     $NetBSD: nfs_vnops.c,v 1.141 2001/10/13 23:25:58 simonb Exp $   */
 
 /*
  * Copyright (c) 1989, 1993
@@ -2171,7 +2171,6 @@
        int error = 0, tlen, more_dirs = 1, blksiz = 0, bigenough = 1;
        int attrflag, nrpcs = 0, reclen;
        const int v3 = NFS_ISV3(vp);
-       nfsquad_t cookie;
 
 #ifdef DIAGNOSTIC
        /*
@@ -2204,7 +2203,6 @@
                nfsm_fhtom(vp, v3);
                if (v3) {
                        nfsm_build(tl, u_int32_t *, 5 * NFSX_UNSIGNED);
-                       cookie.qval = uiop->uio_offset;
                        if (nmp->nm_iflag & NFSMNT_SWAPCOOKIE) {
                                txdr_swapcookie3(uiop->uio_offset, tl);
                        } else {



Home | Main Index | Thread Index | Old Index