svn commit: r234640 - projects/pf/head/sys/contrib/pf/net
Gleb Smirnoff
glebius at FreeBSD.org
Tue Apr 24 08:27:59 UTC 2012
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);
}
/*
More information about the svn-src-projects
mailing list