summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorJason Yan <yanaijie@huawei.com>2020-05-05 15:43:37 +0800
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2020-05-28 20:00:02 -0700
commitc2d77e598b1b7170a091b25e32710a0a9f9e4169 (patch)
tree2d772a4e4ea1b20949e3c18a7abc8d237fe38627 /drivers
parent85c41c5b16ee5a4939a22ec833c6a76753e3d428 (diff)
downloadlinux-stable-c2d77e598b1b7170a091b25e32710a0a9f9e4169.tar.gz
linux-stable-c2d77e598b1b7170a091b25e32710a0a9f9e4169.tar.bz2
linux-stable-c2d77e598b1b7170a091b25e32710a0a9f9e4169.zip
ixgbe: Use true, false for bool variable in __ixgbe_enable_sriov()
Fix the following coccicheck warning: drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c:105:2-38: WARNING: Assignment of 0/1 to bool variable Signed-off-by: Jason Yan <yanaijie@huawei.com> Tested-by: Andrew Bowers <andrewx.bowers@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c b/drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c
index 537dfff585e0..d05a5690e66b 100644
--- a/drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c
+++ b/drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c
@@ -102,7 +102,7 @@ static int __ixgbe_enable_sriov(struct ixgbe_adapter *adapter,
* indirection table and RSS hash key with PF therefore
* we want to disable the querying by default.
*/
- adapter->vfinfo[i].rss_query_enabled = 0;
+ adapter->vfinfo[i].rss_query_enabled = false;
/* Untrust all VFs */
adapter->vfinfo[i].trusted = false;