diff options
author | Federico G. Schwindt <fgsch@cvs.openbsd.org> | 2007-10-13 16:12:30 +0000 |
---|---|---|
committer | Federico G. Schwindt <fgsch@cvs.openbsd.org> | 2007-10-13 16:12:30 +0000 |
commit | a2dccf6b8b407216d5c20f86c4d908936325bdcf (patch) | |
tree | 44280c3eaf6675cae2f7bb1eb421b6fa2639e41c /sys/dev | |
parent | 329e9065abbefe6ee6cdf5d4710cdea84afe573b (diff) |
remove unneeded declarations that shadows existing vars; ok by many.
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/ic/ath.c | 4 | ||||
-rw-r--r-- | sys/dev/ic/elink3.c | 4 | ||||
-rw-r--r-- | sys/dev/ic/fxp.c | 3 |
3 files changed, 3 insertions, 8 deletions
diff --git a/sys/dev/ic/ath.c b/sys/dev/ic/ath.c index b60b488db97..d8dbc2d6d96 100644 --- a/sys/dev/ic/ath.c +++ b/sys/dev/ic/ath.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ath.c,v 1.68 2007/10/01 04:03:51 krw Exp $ */ +/* $OpenBSD: ath.c,v 1.69 2007/10/13 16:12:29 fgsch Exp $ */ /* $NetBSD: ath.c,v 1.37 2004/08/18 21:59:39 dyoung Exp $ */ /*- @@ -1119,8 +1119,6 @@ ath_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data) if (error == ENETRESET) { if ((ifp->if_flags & (IFF_RUNNING|IFF_UP)) == (IFF_RUNNING|IFF_UP)) { - struct ieee80211com *ic = &sc->sc_ic; - if (ic->ic_opmode != IEEE80211_M_MONITOR) ath_init(ifp); /* XXX lose error */ else diff --git a/sys/dev/ic/elink3.c b/sys/dev/ic/elink3.c index 09de8d648a5..3ea2003922a 100644 --- a/sys/dev/ic/elink3.c +++ b/sys/dev/ic/elink3.c @@ -1,4 +1,4 @@ -/* $OpenBSD: elink3.c,v 1.70 2007/09/26 13:09:59 henning Exp $ */ +/* $OpenBSD: elink3.c,v 1.71 2007/10/13 16:12:29 fgsch Exp $ */ /* $NetBSD: elink3.c,v 1.32 1997/05/14 00:22:00 thorpej Exp $ */ /* @@ -782,8 +782,6 @@ epsetmedia(sc, medium) * PHY which media to use. */ if (sc->ep_flags & EP_FLAGS_MII) { - int config0, config1; - GO_WINDOW(3); if (sc->ep_chipset == EP_CHIPSET_ROADRUNNER) { diff --git a/sys/dev/ic/fxp.c b/sys/dev/ic/fxp.c index 20149de9bb6..7eeb8f9868c 100644 --- a/sys/dev/ic/fxp.c +++ b/sys/dev/ic/fxp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: fxp.c,v 1.88 2007/08/31 22:06:02 deraadt Exp $ */ +/* $OpenBSD: fxp.c,v 1.89 2007/10/13 16:12:29 fgsch Exp $ */ /* $NetBSD: if_fxp.c,v 1.2 1997/06/05 02:01:55 thorpej Exp $ */ /* @@ -452,7 +452,6 @@ fxp_attach(struct fxp_softc *sc, const char *intrstr) fxp_read_eeprom(sc, &data, 10, 1); if (data & 0x02) { /* STB enable */ u_int16_t cksum; - int i; printf("%s: Disabling dynamic standby mode in EEPROM", sc->sc_dev.dv_xname); |