Source-Changes-HG archive

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

[src/trunk]: src/sys/netns Remove variable that is only assigned too but not ...



details:   https://anonhg.NetBSD.org/src/rev/ea394ef8c37e
branches:  trunk
changeset: 541942:ea394ef8c37e
user:      simonb <simonb%NetBSD.org@localhost>
date:      Mon Jan 20 01:38:43 2003 +0000

description:
Remove variable that is only assigned too but not referenced.

diffstat:

 sys/netns/ns_pcb.c |  7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diffs (35 lines):

diff -r 9510a325eabf -r ea394ef8c37e sys/netns/ns_pcb.c
--- a/sys/netns/ns_pcb.c        Mon Jan 20 01:35:11 2003 +0000
+++ b/sys/netns/ns_pcb.c        Mon Jan 20 01:38:43 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ns_pcb.c,v 1.17 2001/11/13 01:08:11 lukem Exp $        */
+/*     $NetBSD: ns_pcb.c,v 1.18 2003/01/20 01:38:43 simonb Exp $       */
 
 /*
  * Copyright (c) 1984, 1985, 1986, 1987, 1993
@@ -36,7 +36,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ns_pcb.c,v 1.17 2001/11/13 01:08:11 lukem Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ns_pcb.c,v 1.18 2003/01/20 01:38:43 simonb Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -82,7 +82,6 @@
 {
        struct sockaddr_ns *sns;
        u_int16_t lport = 0;
-       int error;
 
        if (nsp->nsp_lport || !ns_nullhost(nsp->nsp_laddr))
                return (EINVAL);
@@ -103,7 +102,7 @@
        if (lport) {
 
                if (ntohs(lport) < NSPORT_RESERVED &&
-                   (p == 0 || (error = suser(p->p_ucred, &p->p_acflag))))
+                   (p == 0 || suser(p->p_ucred, &p->p_acflag)))
                        return (EACCES);
                if (ns_pcblookup(&zerons_addr, lport, 0))
                        return (EADDRINUSE);



Home | Main Index | Thread Index | Old Index