Date: Mon, 16 Jun 2025 14:46:15 GMT From: Zhenlei Huang <zlei@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: a07604e6264b - main - bridge: Remove a redundant assignment of if_type Message-ID: <202506161446.55GEkFVa001163@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by zlei: URL: https://cgit.FreeBSD.org/src/commit/?id=a07604e6264b88222941fa61c6f989bad5490765 commit a07604e6264b88222941fa61c6f989bad5490765 Author: Zhenlei Huang <zlei@FreeBSD.org> AuthorDate: 2025-06-16 14:35:40 +0000 Commit: Zhenlei Huang <zlei@FreeBSD.org> CommitDate: 2025-06-16 14:35:40 +0000 bridge: Remove a redundant assignment of if_type ether_ifattach() no longer sets if_type to IFT_ETHER and keeps it as is since the change [1]. [1] fc74a9f93a5f Stop embedding struct ifnet at the top of driver softcs No functional change intended. MFC after: 1 week --- sys/net/if_bridge.c | 1 - 1 file changed, 1 deletion(-) diff --git a/sys/net/if_bridge.c b/sys/net/if_bridge.c index 82a530042413..bc421a8e156d 100644 --- a/sys/net/if_bridge.c +++ b/sys/net/if_bridge.c @@ -852,7 +852,6 @@ bridge_clone_create(struct if_clone *ifc, char *name, size_t len, ether_ifattach(ifp, sc->sc_defaddr.octet); /* Now undo some of the damage... */ ifp->if_baudrate = 0; - ifp->if_type = IFT_BRIDGE; #ifdef VIMAGE ifp->if_reassign = bridge_reassign; #endif
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202506161446.55GEkFVa001163>