Source-Changes-HG archive

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

[src/trunk]: src/sys/net remove unused variables.



details:   https://anonhg.NetBSD.org/src/rev/4471a5ce0966
branches:  trunk
changeset: 758525:4471a5ce0966
user:      christos <christos%NetBSD.org@localhost>
date:      Sat Nov 06 23:28:58 2010 +0000

description:
remove unused variables.

diffstat:

 sys/net/if.c |  8 ++------
 1 files changed, 2 insertions(+), 6 deletions(-)

diffs (36 lines):

diff -r 0145f48e253d -r 4471a5ce0966 sys/net/if.c
--- a/sys/net/if.c      Sat Nov 06 23:28:42 2010 +0000
+++ b/sys/net/if.c      Sat Nov 06 23:28:58 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if.c,v 1.247 2010/11/06 17:17:13 christos Exp $        */
+/*     $NetBSD: if.c,v 1.248 2010/11/06 23:28:58 christos Exp $        */
 
 /*-
  * Copyright (c) 1999, 2000, 2001, 2008 The NetBSD Foundation, Inc.
@@ -90,7 +90,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if.c,v 1.247 2010/11/06 17:17:13 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if.c,v 1.248 2010/11/06 23:28:58 christos Exp $");
 
 #include "opt_inet.h"
 
@@ -1688,8 +1688,6 @@
 {
        struct ifnet *ifp;
        struct ifreq *ifr;
-       struct ifcapreq *ifcr;
-       struct ifdatareq *ifdr;
        int error = 0;
 #if defined(COMPAT_OSOCK) || defined(COMPAT_OIFREQ)
        u_long ocmd = cmd;
@@ -1726,8 +1724,6 @@
        } else
 #endif
                ifr = data;
-       ifcr = data;
-       ifdr = data;
 
        ifp = ifunit(ifr->ifr_name);
 



Home | Main Index | Thread Index | Old Index