git: 082a6da890f3 - stable/14 - pfsync: Remove a redundant assignment of if_type
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 07 Jul 2025 10:07:00 UTC
The branch stable/14 has been updated by zlei:
URL: https://cgit.FreeBSD.org/src/commit/?id=082a6da890f3487f1465c0757784798ebe38ef84
commit 082a6da890f3487f1465c0757784798ebe38ef84
Author: Zhenlei Huang <zlei@FreeBSD.org>
AuthorDate: 2025-06-16 14:12:03 +0000
Commit: Zhenlei Huang <zlei@FreeBSD.org>
CommitDate: 2025-07-07 10:05:10 +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
(cherry picked from commit 48af70e7c82150942fd095a38131e454e47ad162)
---
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 503bdab0c6ac..5db72edc2dab 100644
--- a/sys/netpfil/pf/if_pfsync.c
+++ b/sys/netpfil/pf/if_pfsync.c
@@ -401,7 +401,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);