vtnet: Do not compare boolean with integer

The type of variable promisc and allmulti was changed from int to bool
by commit [1].

[1] 7dce56596f Convert to if_foreach_llmaddr() KPI

MFC after:	3 days

(cherry picked from commit 80dfed11fc1c61ce9168db01dee263447619e859)
This commit is contained in:
Zhenlei Huang 2025-08-28 23:59:21 +08:00 committed by Franco Fichtner
parent f0d7e7d492
commit bf2ff4e7ac

View file

@ -3828,9 +3828,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");
}