mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 00:02:14 -04:00
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
This commit is contained in:
parent
be8bae6700
commit
80dfed11fc
1 changed files with 2 additions and 2 deletions
|
|
@ -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");
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue