Date: Tue, 24 Apr 2012 08:27:59 +0000 (UTC) From: Gleb Smirnoff <glebius@FreeBSD.org> To: src-committers@freebsd.org, svn-src-projects@freebsd.org Subject: svn commit: r234640 - projects/pf/head/sys/contrib/pf/net Message-ID: <201204240827.q3O8RxKs037813@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: glebius Date: Tue Apr 24 08:27:58 2012 New Revision: 234640 URL: http://svn.freebsd.org/changeset/base/234640 Log: Finish r234307: remove useless pflog_softc and list of them. Modified: projects/pf/head/sys/contrib/pf/net/if_pflog.c Modified: projects/pf/head/sys/contrib/pf/net/if_pflog.c ============================================================================== --- projects/pf/head/sys/contrib/pf/net/if_pflog.c Tue Apr 24 07:28:53 2012 (r234639) +++ projects/pf/head/sys/contrib/pf/net/if_pflog.c Tue Apr 24 08:27:58 2012 (r234640) @@ -119,7 +119,6 @@ static int pflog_clone_create(struct if_clone *ifc, int unit, caddr_t param) { struct ifnet *ifp; - struct pflog_softc *pflogif; if (unit >= PFLOGIFS_MAX) return (EINVAL); @@ -129,7 +128,6 @@ pflog_clone_create(struct if_clone *ifc, return (ENOSPC); } if_initname(ifp, ifc->ifc_name, unit); - ifp->if_softc = pflogif; ifp->if_mtu = PFLOGMTU; ifp->if_ioctl = pflogioctl; ifp->if_output = pflogoutput; @@ -146,12 +144,10 @@ pflog_clone_create(struct if_clone *ifc, static void pflog_clone_destroy(struct ifnet *ifp) { - struct pflog_softc *pflogif = ifp->if_softc; bpfdetach(ifp); if_detach(ifp); if_free(ifp); - free(pflogif, M_DEVBUF); } /*
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201204240827.q3O8RxKs037813>