git: 56a81f37332a - stable/13 - ng_iface(4): Remove a redundant assignment of if_type
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 08 Jul 2025 10:05:05 UTC
The branch stable/13 has been updated by zlei:
URL: https://cgit.FreeBSD.org/src/commit/?id=56a81f37332a6b22562a4e810b1b99d058fa6c5b
commit 56a81f37332a6b22562a4e810b1b99d058fa6c5b
Author: Zhenlei Huang <zlei@FreeBSD.org>
AuthorDate: 2025-06-13 10:07:18 +0000
Commit: Zhenlei Huang <zlei@FreeBSD.org>
CommitDate: 2025-07-08 10:03:28 +0000
ng_iface(4): Remove a redundant assignment of if_type
That is unnecessary since change [1], as if_alloc(IFT_PROPVIRTUAL) has
set if_type already.
[1] fc74a9f93a5f Stop embedding struct ifnet at the top of driver softcs
No functional change intended.
MFC after: 1 week
(cherry picked from commit c43d6dadf7e34a94f4d119ff6d7113ad9a9b4d38)
(cherry picked from commit 3da0853d71197610375262b8bb06cadda6c8f4dc)
---
sys/netgraph/ng_iface.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/sys/netgraph/ng_iface.c b/sys/netgraph/ng_iface.c
index 6bc0e527bd82..8793a96d29cb 100644
--- a/sys/netgraph/ng_iface.c
+++ b/sys/netgraph/ng_iface.c
@@ -544,7 +544,6 @@ ng_iface_constructor(node_p node)
ifp->if_ioctl = ng_iface_ioctl;
ifp->if_mtu = NG_IFACE_MTU_DEFAULT;
ifp->if_flags = (IFF_SIMPLEX|IFF_POINTOPOINT|IFF_NOARP|IFF_MULTICAST);
- ifp->if_type = IFT_PROPVIRTUAL; /* XXX */
ifp->if_addrlen = 0; /* XXX */
ifp->if_hdrlen = 0; /* XXX */
ifp->if_baudrate = 64000; /* XXX */