diff options
author | Brad Smith <brad@cvs.openbsd.org> | 2008-04-20 00:34:40 +0000 |
---|---|---|
committer | Brad Smith <brad@cvs.openbsd.org> | 2008-04-20 00:34:40 +0000 |
commit | 7fdb90cefd4805ff34ff1b765f8b78853473b07d (patch) | |
tree | 2659e3ae1544345d7379227b8fc988b9f1600a65 /sys/dev | |
parent | 23f6d05772bfe767ea50087b6c74aa962907ec0b (diff) |
Remove unused flags.
ok dlg@
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/cardbus/if_re_cardbus.c | 4 | ||||
-rw-r--r-- | sys/dev/ic/rtl81x9reg.h | 8 | ||||
-rw-r--r-- | sys/dev/pci/if_re_pci.c | 4 |
3 files changed, 3 insertions, 13 deletions
diff --git a/sys/dev/cardbus/if_re_cardbus.c b/sys/dev/cardbus/if_re_cardbus.c index d871940b417..86ba66db2fd 100644 --- a/sys/dev/cardbus/if_re_cardbus.c +++ b/sys/dev/cardbus/if_re_cardbus.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_re_cardbus.c,v 1.12 2008/02/17 05:29:25 brad Exp $ */ +/* $OpenBSD: if_re_cardbus.c,v 1.13 2008/04/20 00:34:39 brad Exp $ */ /* * Copyright (c) 2005 Peter Valchev <pvalchev@openbsd.org> @@ -159,8 +159,6 @@ re_cardbus_attach(struct device *parent, struct device *self, void *aux) } snprintf(intrstr, sizeof(intrstr), "irq %d", ca->ca_intrline); - sc->sc_flags |= RL_ENABLED; - sc->sc_sdhook = shutdownhook_establish(re_cardbus_shutdown, sc); sc->sc_pwrhook = powerhook_establish(re_cardbus_powerhook, sc); diff --git a/sys/dev/ic/rtl81x9reg.h b/sys/dev/ic/rtl81x9reg.h index b0c150e14d8..937bd22dce1 100644 --- a/sys/dev/ic/rtl81x9reg.h +++ b/sys/dev/ic/rtl81x9reg.h @@ -1,4 +1,4 @@ -/* $OpenBSD: rtl81x9reg.h,v 1.43 2008/02/17 05:29:25 brad Exp $ */ +/* $OpenBSD: rtl81x9reg.h,v 1.44 2008/04/20 00:34:39 brad Exp $ */ /* * Copyright (c) 1997, 1998 @@ -725,7 +725,6 @@ struct rl_softc { void *sc_sdhook; /* shutdownhook */ void *sc_pwrhook; int rl_txthresh; - int sc_flags; /* misc flags */ struct rl_chain_data rl_cdata; struct timeout sc_tick_tmo; int if_flags; @@ -757,11 +756,6 @@ struct rl_softc { #define RL_TXPADDADDR(sc) \ ((sc)->rl_ldata.rl_rx_list_map->dm_segs[0].ds_addr + RL_TXPADOFF) - -#define RL_ATTACHED 0x00000001 /* attach has succeeded */ -#define RL_ENABLED 0x00000002 /* chip is enabled */ -#define RL_IS_ENABLED(sc) ((sc)->sc_flags & RL_ENABLED) - /* * register space access macros */ diff --git a/sys/dev/pci/if_re_pci.c b/sys/dev/pci/if_re_pci.c index 9657383eab2..f205c8af679 100644 --- a/sys/dev/pci/if_re_pci.c +++ b/sys/dev/pci/if_re_pci.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_re_pci.c,v 1.20 2008/02/17 05:29:25 brad Exp $ */ +/* $OpenBSD: if_re_pci.c,v 1.21 2008/04/20 00:34:39 brad Exp $ */ /* * Copyright (c) 2005 Peter Valchev <pvalchev@openbsd.org> @@ -187,8 +187,6 @@ re_pci_attach(struct device *parent, struct device *self, void *aux) sc->sc_dmat = pa->pa_dmat; - sc->sc_flags |= RL_ENABLED; - /* Call bus-independent attach routine */ re_attach(sc, intrstr); } |