wrap bpfdetach() with NBPFILTER > 0.

This commit is contained in:
itojun 2000-02-02 07:47:33 +00:00
parent 19bff8f913
commit af1d56129f
1 changed files with 3 additions and 1 deletions

View File

@ -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. * Copyright (c) 1998 The NetBSD Foundation, Inc.
@ -419,7 +419,9 @@ ep_pcmcia_detach(self, flags)
/* Free our i/o space. */ /* Free our i/o space. */
pcmcia_io_free(psc->sc_pf, &psc->sc_pcioh); pcmcia_io_free(psc->sc_pf, &psc->sc_pcioh);
#if NBPFILTER > 0
bpfdetach(ifp); bpfdetach(ifp);
#endif
ether_ifdetach(ifp); ether_ifdetach(ifp);
if_detach(ifp); if_detach(ifp);