fm10k: use true/false for boolean get_host_state
authorBruce Allan <bruce.w.allan@intel.com>
Tue, 8 Dec 2015 23:51:11 +0000 (15:51 -0800)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Tue, 22 Dec 2015 13:16:45 +0000 (05:16 -0800)
Signed-off-by: Bruce Allan <bruce.w.allan@intel.com>
Tested-by: Krishneil Singh <Krishneil.k.singh@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/fm10k/fm10k_pci.c

index 9c6ed8855abe0872ebdcbd191c90dca4b30d0217..4eb7a6fa6b0ddc4410d4f14dfd0785b41cb0a036 100644 (file)
@@ -912,7 +912,7 @@ static irqreturn_t fm10k_msix_mbx_vf(int __always_unused irq, void *data)
                fm10k_mbx_unlock(interface);
        }
 
-       hw->mac.get_host_state = 1;
+       hw->mac.get_host_state = true;
        fm10k_service_event_schedule(interface);
 
        return IRQ_HANDLED;
@@ -1128,7 +1128,7 @@ static irqreturn_t fm10k_msix_mbx_pf(int __always_unused irq, void *data)
        }
 
        /* we should validate host state after interrupt event */
-       hw->mac.get_host_state = 1;
+       hw->mac.get_host_state = true;
 
        /* validate host state, and handle VF mailboxes in the service task */
        fm10k_service_event_schedule(interface);
@@ -1635,7 +1635,7 @@ void fm10k_up(struct fm10k_intfc *interface)
        netif_tx_start_all_queues(interface->netdev);
 
        /* kick off the service timer now */
-       hw->mac.get_host_state = 1;
+       hw->mac.get_host_state = true;
        mod_timer(&interface->service_timer, jiffies);
 }