summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>2005-01-20 00:44:28 +0000
committermillert <millert@openbsd.org>2005-01-20 00:44:28 +0000
commitf4d359701cc9b6f97a04742f0d24db1ac2700b64 (patch)
treecd2b413d20db5d7320af7f830bb63f750e3de262
parentProvide openbsd emulation for mips64el as we do for mips64. (diff)
downloadwireguard-openbsd-f4d359701cc9b6f97a04742f0d24db1ac2700b64.tar.xz
wireguard-openbsd-f4d359701cc9b6f97a04742f0d24db1ac2700b64.zip
If the card failed to attach completely we still want to unmap its
resources when it is ejected. OK deraadt@
-rw-r--r--sys/dev/pcmcia/if_wi_pcmcia.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/sys/dev/pcmcia/if_wi_pcmcia.c b/sys/dev/pcmcia/if_wi_pcmcia.c
index ec8d2d46a38..6bb64a520c5 100644
--- a/sys/dev/pcmcia/if_wi_pcmcia.c
+++ b/sys/dev/pcmcia/if_wi_pcmcia.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_wi_pcmcia.c,v 1.57 2005/01/11 22:07:58 drahn Exp $ */
+/* $OpenBSD: if_wi_pcmcia.c,v 1.58 2005/01/20 00:44:28 millert Exp $ */
/* $NetBSD: if_wi_pcmcia.c,v 1.14 2001/11/26 04:34:56 ichiro Exp $ */
/*
@@ -447,11 +447,6 @@ wi_pcmcia_detach(dev, flags)
struct wi_softc *sc = &psc->sc_wi;
struct ifnet *ifp = &sc->sc_arpcom.ac_if;
- if (!(sc->wi_flags & WI_FLAGS_ATTACHED)) {
- printf("%s: already detached\n", sc->sc_dev.dv_xname);
- return (0);
- }
-
wi_detach(sc);
sc->wi_flags = 0;