Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/mca Remove assigned-to but not used variable (includ...



details:   https://anonhg.NetBSD.org/src/rev/5845db6bf163
branches:  trunk
changeset: 543321:5845db6bf163
user:      simonb <simonb%NetBSD.org@localhost>
date:      Sun Feb 23 04:14:16 2003 +0000

description:
Remove assigned-to but not used variable (including nice little switch
statement to set said variable).

diffstat:

 sys/dev/mca/if_elmc_mca.c |  14 ++------------
 1 files changed, 2 insertions(+), 12 deletions(-)

diffs (35 lines):

diff -r 0ce92912905f -r 5845db6bf163 sys/dev/mca/if_elmc_mca.c
--- a/sys/dev/mca/if_elmc_mca.c Sun Feb 23 04:10:11 2003 +0000
+++ b/sys/dev/mca/if_elmc_mca.c Sun Feb 23 04:14:16 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_elmc_mca.c,v 1.11 2002/10/02 16:34:10 thorpej Exp $ */
+/*     $NetBSD: if_elmc_mca.c,v 1.12 2003/02/23 04:14:16 simonb Exp $  */
 
 /*-
  * Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -46,7 +46,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_elmc_mca.c,v 1.11 2002/10/02 16:34:10 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_elmc_mca.c,v 1.12 2003/02/23 04:14:16 simonb Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -400,16 +400,6 @@
        int why;
 {
     struct elmc_mca_softc* asc = (struct elmc_mca_softc *) sc;
-    int intr = 0;
-
-    switch (why) {
-    case CHIP_PROBE:
-       intr = 0;
-       break;
-    case CARD_RESET:
-       intr = ELMC_CTRL_INT;
-       break;
-    }
 
     /* toggle the RST bit low then high */
     bus_space_write_1(asc->sc_regt, asc->sc_regh, ELMC_CTRL,



Home | Main Index | Thread Index | Old Index