diff options
| author | simonb <simonb@NetBSD.org> | 2003-02-23 04:14:16 +0000 |
|---|---|---|
| committer | simonb <simonb@NetBSD.org> | 2003-02-23 04:14:16 +0000 |
| commit | f0192b8a3fb849dd58d514d3cc8884089edcc5a7 (patch) | |
| tree | 5bd79095a6dc97b472256efbb9a2732bb91fefa6 /sys/dev | |
| parent | e40197c4b39d2ec3facca8b6a32e0d736cb861bd (diff) | |
Remove assigned-to but not used variable (including nice little switch
statement to set said variable).
Diffstat (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/mca/if_elmc_mca.c | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/sys/dev/mca/if_elmc_mca.c b/sys/dev/mca/if_elmc_mca.c index 0f91c7fbc32..0244a23fcc5 100644 --- a/sys/dev/mca/if_elmc_mca.c +++ b/sys/dev/mca/if_elmc_mca.c @@ -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 @@ elmc_mca_hwreset(sc, why) 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, |
