Date: Mon, 1 Sep 2025 13:36:44 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: c4e5df1cb25f - stable/14 - vtnet: Do not compare boolean with integer Message-ID: <202509011336.581DaimI051419@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=c4e5df1cb25ff2cf588806b482ade663a8ecfdf5 commit c4e5df1cb25ff2cf588806b482ade663a8ecfdf5 Author: Zhenlei Huang <zlei@FreeBSD.org> AuthorDate: 2025-08-28 15:59:21 +0000 Commit: Zhenlei Huang <zlei@FreeBSD.org> CommitDate: 2025-09-01 13:29:43 +0000 vtnet: Do not compare boolean with integer The type of variable promisc and allmulti was changed from int to bool by commit [1]. [1] 7dce56596f36 Convert to if_foreach_llmaddr() KPI MFC after: 3 days (cherry picked from commit 80dfed11fc1c61ce9168db01dee263447619e859) --- sys/dev/virtio/network/if_vtnet.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/dev/virtio/network/if_vtnet.c b/sys/dev/virtio/network/if_vtnet.c index 0292458bfc40..479c34b4f2ee 100644 --- a/sys/dev/virtio/network/if_vtnet.c +++ b/sys/dev/virtio/network/if_vtnet.c @@ -3814,9 +3814,9 @@ vtnet_rx_filter_mac(struct vtnet_softc *sc) if_printf(ifp, "error setting host MAC filter table\n"); out: - if (promisc != 0 && vtnet_set_promisc(sc, true) != 0) + if (promisc && vtnet_set_promisc(sc, true) != 0) if_printf(ifp, "cannot enable promiscuous mode\n"); - if (allmulti != 0 && vtnet_set_allmulti(sc, true) != 0) + if (allmulti && vtnet_set_allmulti(sc, true) != 0) if_printf(ifp, "cannot enable all-multicast mode\n"); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202509011336.581DaimI051419>