diff options
author | Brad Smith <brad@cvs.openbsd.org> | 2012-11-22 02:04:51 +0000 |
---|---|---|
committer | Brad Smith <brad@cvs.openbsd.org> | 2012-11-22 02:04:51 +0000 |
commit | 3096a040bc4dae7550044cabac4ed79e09b8a8bf (patch) | |
tree | 16839012163db0fc0a5435bdf9c526ca10be96b3 /sys | |
parent | 34fc569cd84b7316a79f88cd8578cffc5515f047 (diff) |
Don't bother to store the return value from pci_set_powerstate() as the
code that used to do something with it was removed with the previous
commit.
ok deraadt@
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/pci/if_pcn.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/dev/pci/if_pcn.c b/sys/dev/pci/if_pcn.c index 980f903825f..3e4d23f942e 100644 --- a/sys/dev/pci/if_pcn.c +++ b/sys/dev/pci/if_pcn.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_pcn.c,v 1.25 2012/10/18 21:44:21 deraadt Exp $ */ +/* $OpenBSD: if_pcn.c,v 1.26 2012/11/22 02:04:50 brad Exp $ */ /* $NetBSD: if_pcn.c,v 1.26 2005/05/07 09:15:44 is Exp $ */ /* @@ -578,7 +578,6 @@ pcn_attach(struct device *parent, struct device *self, void *aux) int i, rseg, error; uint32_t chipid, reg; uint8_t enaddr[ETHER_ADDR_LEN]; - int state; timeout_set(&sc->sc_tick_timeout, pcn_tick, sc); @@ -605,7 +604,7 @@ pcn_attach(struct device *parent, struct device *self, void *aux) sc->sc_dmat = pa->pa_dmat; /* Get it out of power save mode, if needed. */ - state = pci_set_powerstate(pc, pa->pa_tag, PCI_PMCSR_STATE_D0); + pci_set_powerstate(pc, pa->pa_tag, PCI_PMCSR_STATE_D0); /* * Reset the chip to a known state. This also puts the |