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] fc74a9f93a Stop embedding struct ifnet at the top of driver softcs

No functional change intended.

MFC after:	1 week
This commit is contained in:
Zhenlei Huang
2025-06-13 18:07:18 +08:00
parent 1873f2a5fd
commit c43d6dadf7
-1
View File
@@ -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 */