]> git.baikalelectronics.ru Git - kernel.git/commitdiff
ixgbe: Use true, false for bool variable in __ixgbe_enable_sriov()
authorJason Yan <yanaijie@huawei.com>
Tue, 5 May 2020 07:43:37 +0000 (15:43 +0800)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Fri, 29 May 2020 03:00:02 +0000 (20:00 -0700)
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>
drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c

index 537dfff585e0dfa719201202d5cafa1364a474c4..d05a5690e66bdb2e8fdbe08007a2ec787b6a3010 100644 (file)
@@ -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;