git: 48af70e7c821 - main - pfsync: Remove a redundant assignment of if_type
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 16 Jun 2025 14:13:14 UTC
The branch main has been updated by zlei:
URL: https://cgit.FreeBSD.org/src/commit/?id=48af70e7c82150942fd095a38131e454e47ad162
commit 48af70e7c82150942fd095a38131e454e47ad162
Author: Zhenlei Huang <zlei@FreeBSD.org>
AuthorDate: 2025-06-16 14:12:03 +0000
Commit: Zhenlei Huang <zlei@FreeBSD.org>
CommitDate: 2025-06-16 14:12:03 +0000
pfsync: Remove a redundant assignment of if_type
On initializing the interface, if_alloc(IFT_PFSYNC) has set if_type
already.
No functional change intended.
MFC after: 1 week
---
sys/netpfil/pf/if_pfsync.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/sys/netpfil/pf/if_pfsync.c b/sys/netpfil/pf/if_pfsync.c
index 0795c75e8de0..31b641b43fe3 100644
--- a/sys/netpfil/pf/if_pfsync.c
+++ b/sys/netpfil/pf/if_pfsync.c
@@ -403,7 +403,6 @@ pfsync_clone_create(struct if_clone *ifc, int unit, caddr_t param)
ifp->if_softc = sc;
ifp->if_ioctl = pfsyncioctl;
ifp->if_output = pfsyncoutput;
- ifp->if_type = IFT_PFSYNC;
ifp->if_hdrlen = sizeof(struct pfsync_header);
ifp->if_mtu = ETHERMTU;
mtx_init(&sc->sc_mtx, pfsyncname, NULL, MTX_DEF);