qlcnic: use true,false for bool variable in qlcnic_sriov_common.c

Fix the following coccicheck warning:

drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c:1585:3-25:
WARNING: Assignment of 0/1 to bool variable
drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c:1588:3-25:
WARNING: Assignment of 0/1 to bool variable

Signed-off-by: Jason Yan <yanaijie@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Jason Yan 2020-05-05 15:43:49 +08:00 committed by David S. Miller
parent 3e1853e4e1
commit d9a1c584a9
1 changed files with 2 additions and 2 deletions

View File

@ -1582,10 +1582,10 @@ void qlcnic_sriov_vf_set_multi(struct net_device *netdev)
if (mode == VPORT_MISS_MODE_ACCEPT_ALL &&
!adapter->fdb_mac_learn) {
qlcnic_alloc_lb_filters_mem(adapter);
adapter->drv_mac_learn = 1;
adapter->drv_mac_learn = true;
adapter->rx_mac_learn = true;
} else {
adapter->drv_mac_learn = 0;
adapter->drv_mac_learn = false;
adapter->rx_mac_learn = false;
}
}