Module Name:    src
Committed By:   christos
Date:           Thu Oct 17 21:06:47 UTC 2013

Modified Files:
        src/sys/dev/pcmcia: if_ne_pcmcia.c

Log Message:
remove unused variable


To generate a diff of this commit:
cvs rdiff -u -r1.159 -r1.160 src/sys/dev/pcmcia/if_ne_pcmcia.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/pcmcia/if_ne_pcmcia.c
diff -u src/sys/dev/pcmcia/if_ne_pcmcia.c:1.159 src/sys/dev/pcmcia/if_ne_pcmcia.c:1.160
--- src/sys/dev/pcmcia/if_ne_pcmcia.c:1.159	Fri Nov 25 21:20:29 2011
+++ src/sys/dev/pcmcia/if_ne_pcmcia.c	Thu Oct 17 17:06:47 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: if_ne_pcmcia.c,v 1.159 2011/11/26 02:20:29 nonaka Exp $	*/
+/*	$NetBSD: if_ne_pcmcia.c,v 1.160 2013/10/17 21:06:47 christos Exp $	*/
 
 /*
  * Copyright (c) 1997 Marc Horowitz.  All rights reserved.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_ne_pcmcia.c,v 1.159 2011/11/26 02:20:29 nonaka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_ne_pcmcia.c,v 1.160 2013/10/17 21:06:47 christos Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -583,7 +583,6 @@ ne_pcmcia_attach(device_t parent, device
 	const struct ne2000dev *ne_dev;
 	int i;
 	u_int8_t myea[6], *enaddr;
-	const char *typestr = "";
 	int error;
 
 	aprint_naive("\n");
@@ -628,7 +627,6 @@ ne_pcmcia_attach(device_t parent, device
 	i = 0;
 again:
 	enaddr = NULL;			/* Ask ASIC by default */
-	typestr = "";			/* clear previous card-type */
 	for (; i < NE2000_NDEVS; i++) {
 		ne_dev = ne2000_match(pa->card, pa->pf->number, i);
 		if (ne_dev != NULL) {
@@ -669,10 +667,8 @@ found:
 		type = bus_space_read_1(nsc->sc_asict, nsc->sc_asich, 0x0f);
 		if (type == 0x91 || type == 0x99) {
 			nsc->sc_type = NE2000_TYPE_DL10022;
-			typestr = " (DL10022)";
 		} else {
 			nsc->sc_type = NE2000_TYPE_DL10019;
-			typestr = " (DL10019)";
 		}
 	}
 
@@ -695,10 +691,8 @@ found:
 		test = bus_space_read_1(nsc->sc_asict, nsc->sc_asich, 0x05);
 		if (test != 0) {
 			nsc->sc_type = NE2000_TYPE_AX88790;
-			typestr = " (AX88790)";
 		} else {
 			nsc->sc_type = NE2000_TYPE_AX88190;
-			typestr = " (AX88190)";
 		}
 	}
 
@@ -725,7 +719,6 @@ found:
 		    NERTL_RTL0_8019ID0) == RTL0_8019ID0 &&
 		    bus_space_read_1(dsc->sc_regt, dsc->sc_regh,
 		    NERTL_RTL0_8019ID1) == RTL0_8019ID1) {
-			typestr = " (RTL8019)";
 			dsc->sc_mediachange = rtl80x9_mediachange;
 			dsc->sc_mediastatus = rtl80x9_mediastatus;
 			dsc->init_card = rtl80x9_init_card;

Reply via email to