From af1d56129f77d91906a7df01428b6889f20c7031 Mon Sep 17 00:00:00 2001 From: itojun Date: Wed, 2 Feb 2000 07:47:33 +0000 Subject: [PATCH] wrap bpfdetach() with NBPFILTER > 0. --- sys/dev/pcmcia/if_ep_pcmcia.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sys/dev/pcmcia/if_ep_pcmcia.c b/sys/dev/pcmcia/if_ep_pcmcia.c index c41d5dacd355..672977da4469 100644 --- a/sys/dev/pcmcia/if_ep_pcmcia.c +++ b/sys/dev/pcmcia/if_ep_pcmcia.c @@ -1,4 +1,4 @@ -/* $NetBSD: if_ep_pcmcia.c,v 1.25 2000/02/02 07:23:28 augustss Exp $ */ +/* $NetBSD: if_ep_pcmcia.c,v 1.26 2000/02/02 07:47:33 itojun Exp $ */ /*- * Copyright (c) 1998 The NetBSD Foundation, Inc. @@ -419,7 +419,9 @@ ep_pcmcia_detach(self, flags) /* Free our i/o space. */ pcmcia_io_free(psc->sc_pf, &psc->sc_pcioh); +#if NBPFILTER > 0 bpfdetach(ifp); +#endif ether_ifdetach(ifp); if_detach(ifp);