Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/acorn32/podulebus fix unused variables



details:   https://anonhg.NetBSD.org/src/rev/e77bd2886d23
branches:  trunk
changeset: 326173:e77bd2886d23
user:      christos <christos%NetBSD.org@localhost>
date:      Tue Jan 21 19:30:46 2014 +0000

description:
fix unused variables

diffstat:

 sys/arch/acorn32/podulebus/if_ne_pbus.c |  13 ++++++-------
 1 files changed, 6 insertions(+), 7 deletions(-)

diffs (47 lines):

diff -r 7303633a5db0 -r e77bd2886d23 sys/arch/acorn32/podulebus/if_ne_pbus.c
--- a/sys/arch/acorn32/podulebus/if_ne_pbus.c   Tue Jan 21 19:09:48 2014 +0000
+++ b/sys/arch/acorn32/podulebus/if_ne_pbus.c   Tue Jan 21 19:30:46 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_ne_pbus.c,v 1.17 2012/05/10 10:27:10 skrll Exp $    */
+/*     $NetBSD: if_ne_pbus.c,v 1.18 2014/01/21 19:30:46 christos Exp $ */
 
 /*
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -50,7 +50,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_ne_pbus.c,v 1.17 2012/05/10 10:27:10 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_ne_pbus.c,v 1.18 2014/01/21 19:30:46 christos Exp $");
 
 #include <sys/param.h>
 #include <sys/device.h>
@@ -233,16 +233,12 @@
        struct ne_pbus_softc *npsc = device_private(self);
        struct ne2000_softc *nsc = &npsc->sc_ne2000;
        struct dp8390_softc *dsc = &nsc->sc_dp8390;
-
-       int *media, nmedia, defmedia;
        struct ne_clone *ne = NULL;
        uint8_t buffer[6];
        uint8_t *myea;
        int loop;
 
        dsc->sc_dev = self;
-       media = NULL;
-       nmedia = defmedia = 0;
        /* Check a few things about the attach args */
 
        if (pa->pa_podule_number == -1)
@@ -368,7 +364,10 @@
                dsc->sc_mediastatus = ne->mediastatus;
                dsc->init_card = ne->init_card;
                dsc->sc_media_init = ne->init_media;
-/*             ne->init_media(dsc,&media,&nmedia,&defmedia); */
+#if 0
+               int *media = NULL, nmedia = 0, defmedia = 0;
+               ne->init_media(dsc, &media, &nmedia, &defmedia);
+#endif
        }
 
        /*



Home | Main Index | Thread Index | Old Index