From 1c2dbae3782a9af621a9d39b2388249f24e4a16f Mon Sep 17 00:00:00 2001 From: Claudio Jeker Date: Sat, 9 Jan 2010 20:29:43 +0000 Subject: No need to call bpfdetach() in mpe_clone_destroy() since this is done in if_detach() which is called right afterwards. Found by Gleydson Soares (gleydson (at) trusted.com.br) --- sys/net/if_mpe.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'sys/net') diff --git a/sys/net/if_mpe.c b/sys/net/if_mpe.c index c49f582a7c3..cbfb7c5819f 100644 --- a/sys/net/if_mpe.c +++ b/sys/net/if_mpe.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_mpe.c,v 1.17 2009/12/26 12:34:41 claudio Exp $ */ +/* $OpenBSD: if_mpe.c,v 1.18 2010/01/09 20:29:42 claudio Exp $ */ /* * Copyright (c) 2008 Pierre-Yves Ritschard @@ -127,9 +127,6 @@ mpe_clone_destroy(struct ifnet *ifp) LIST_REMOVE(mpeif, sc_list); splx(s); -#if NBPFILTER > 0 - bpfdetach(ifp); -#endif if_detach(ifp); free(mpeif, M_DEVBUF); return (0); -- cgit v1.2.3