git: c43d6dadf7e3 - main - ng_iface(4): Remove a redundant assignment of if_type
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 13 Jun 2025 10:08:27 UTC
The branch main has been updated by zlei:
URL: https://cgit.FreeBSD.org/src/commit/?id=c43d6dadf7e34a94f4d119ff6d7113ad9a9b4d38
commit c43d6dadf7e34a94f4d119ff6d7113ad9a9b4d38
Author: Zhenlei Huang <zlei@FreeBSD.org>
AuthorDate: 2025-06-13 10:07:18 +0000
Commit: Zhenlei Huang <zlei@FreeBSD.org>
CommitDate: 2025-06-13 10:07:18 +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
---
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 d42e74d5fd22..fbe89e13474b 100644
--- a/sys/netgraph/ng_iface.c
+++ b/sys/netgraph/ng_iface.c
@@ -545,7 +545,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 */