Date: Mon, 7 Jul 2025 10:07:00 GMT From: Zhenlei Huang <zlei@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Subject: git: 082a6da890f3 - stable/14 - pfsync: Remove a redundant assignment of if_type Message-ID: <202507071007.567A708e053493@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202507071007.567A708e053493>