aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/intel/e1000e/netdev.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/ethernet/intel/e1000e/netdev.c')
-rw-r--r--drivers/net/ethernet/intel/e1000e/netdev.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/drivers/net/ethernet/intel/e1000e/netdev.c b/drivers/net/ethernet/intel/e1000e/netdev.c
index 90953b4d6bf..3911401ed65 100644
--- a/drivers/net/ethernet/intel/e1000e/netdev.c
+++ b/drivers/net/ethernet/intel/e1000e/netdev.c
@@ -859,7 +859,7 @@ static bool e1000_clean_rx_irq(struct e1000_adapter *adapter,
859 u32 length, staterr; 859 u32 length, staterr;
860 unsigned int i; 860 unsigned int i;
861 int cleaned_count = 0; 861 int cleaned_count = 0;
862 bool cleaned = 0; 862 bool cleaned = false;
863 unsigned int total_rx_bytes = 0, total_rx_packets = 0; 863 unsigned int total_rx_bytes = 0, total_rx_packets = 0;
864 864
865 i = rx_ring->next_to_clean; 865 i = rx_ring->next_to_clean;
@@ -888,7 +888,7 @@ static bool e1000_clean_rx_irq(struct e1000_adapter *adapter,
888 888
889 next_buffer = &rx_ring->buffer_info[i]; 889 next_buffer = &rx_ring->buffer_info[i];
890 890
891 cleaned = 1; 891 cleaned = true;
892 cleaned_count++; 892 cleaned_count++;
893 dma_unmap_single(&pdev->dev, 893 dma_unmap_single(&pdev->dev,
894 buffer_info->dma, 894 buffer_info->dma,
@@ -1157,7 +1157,7 @@ static bool e1000_clean_tx_irq(struct e1000_adapter *adapter)
1157 * Detect a transmit hang in hardware, this serializes the 1157 * Detect a transmit hang in hardware, this serializes the
1158 * check with the clearing of time_stamp and movement of i 1158 * check with the clearing of time_stamp and movement of i
1159 */ 1159 */
1160 adapter->detect_tx_hung = 0; 1160 adapter->detect_tx_hung = false;
1161 if (tx_ring->buffer_info[i].time_stamp && 1161 if (tx_ring->buffer_info[i].time_stamp &&
1162 time_after(jiffies, tx_ring->buffer_info[i].time_stamp 1162 time_after(jiffies, tx_ring->buffer_info[i].time_stamp
1163 + (adapter->tx_timeout_factor * HZ)) && 1163 + (adapter->tx_timeout_factor * HZ)) &&
@@ -1192,7 +1192,7 @@ static bool e1000_clean_rx_irq_ps(struct e1000_adapter *adapter,
1192 unsigned int i, j; 1192 unsigned int i, j;
1193 u32 length, staterr; 1193 u32 length, staterr;
1194 int cleaned_count = 0; 1194 int cleaned_count = 0;
1195 bool cleaned = 0; 1195 bool cleaned = false;
1196 unsigned int total_rx_bytes = 0, total_rx_packets = 0; 1196 unsigned int total_rx_bytes = 0, total_rx_packets = 0;
1197 1197
1198 i = rx_ring->next_to_clean; 1198 i = rx_ring->next_to_clean;
@@ -1218,7 +1218,7 @@ static bool e1000_clean_rx_irq_ps(struct e1000_adapter *adapter,
1218 1218
1219 next_buffer = &rx_ring->buffer_info[i]; 1219 next_buffer = &rx_ring->buffer_info[i];
1220 1220
1221 cleaned = 1; 1221 cleaned = true;
1222 cleaned_count++; 1222 cleaned_count++;
1223 dma_unmap_single(&pdev->dev, buffer_info->dma, 1223 dma_unmap_single(&pdev->dev, buffer_info->dma,
1224 adapter->rx_ps_bsize0, DMA_FROM_DEVICE); 1224 adapter->rx_ps_bsize0, DMA_FROM_DEVICE);
@@ -4257,7 +4257,7 @@ static void e1000_print_link_info(struct e1000_adapter *adapter)
4257static bool e1000e_has_link(struct e1000_adapter *adapter) 4257static bool e1000e_has_link(struct e1000_adapter *adapter)
4258{ 4258{
4259 struct e1000_hw *hw = &adapter->hw; 4259 struct e1000_hw *hw = &adapter->hw;
4260 bool link_active = 0; 4260 bool link_active = false;
4261 s32 ret_val = 0; 4261 s32 ret_val = 0;
4262 4262
4263 /* 4263 /*
@@ -4272,7 +4272,7 @@ static bool e1000e_has_link(struct e1000_adapter *adapter)
4272 ret_val = hw->mac.ops.check_for_link(hw); 4272 ret_val = hw->mac.ops.check_for_link(hw);
4273 link_active = !hw->mac.get_link_status; 4273 link_active = !hw->mac.get_link_status;
4274 } else { 4274 } else {
4275 link_active = 1; 4275 link_active = true;
4276 } 4276 }
4277 break; 4277 break;
4278 case e1000_media_type_fiber: 4278 case e1000_media_type_fiber:
@@ -4371,7 +4371,7 @@ static void e1000_watchdog_task(struct work_struct *work)
4371 4371
4372 if (link) { 4372 if (link) {
4373 if (!netif_carrier_ok(netdev)) { 4373 if (!netif_carrier_ok(netdev)) {
4374 bool txb2b = 1; 4374 bool txb2b = true;
4375 4375
4376 /* Cancel scheduled suspend requests. */ 4376 /* Cancel scheduled suspend requests. */
4377 pm_runtime_resume(netdev->dev.parent); 4377 pm_runtime_resume(netdev->dev.parent);
@@ -4404,11 +4404,11 @@ static void e1000_watchdog_task(struct work_struct *work)
4404 adapter->tx_timeout_factor = 1; 4404 adapter->tx_timeout_factor = 1;
4405 switch (adapter->link_speed) { 4405 switch (adapter->link_speed) {
4406 case SPEED_10: 4406 case SPEED_10:
4407 txb2b = 0; 4407 txb2b = false;
4408 adapter->tx_timeout_factor = 16; 4408 adapter->tx_timeout_factor = 16;
4409 break; 4409 break;
4410 case SPEED_100: 4410 case SPEED_100:
4411 txb2b = 0; 4411 txb2b = false;
4412 adapter->tx_timeout_factor = 10; 4412 adapter->tx_timeout_factor = 10;
4413 break; 4413 break;
4414 } 4414 }
@@ -4544,7 +4544,7 @@ link_up:
4544 e1000e_flush_descriptors(adapter); 4544 e1000e_flush_descriptors(adapter);
4545 4545
4546 /* Force detection of hung controller every watchdog period */ 4546 /* Force detection of hung controller every watchdog period */
4547 adapter->detect_tx_hung = 1; 4547 adapter->detect_tx_hung = true;
4548 4548
4549 /* 4549 /*
4550 * With 82571 controllers, LAA may be overwritten due to controller 4550 * With 82571 controllers, LAA may be overwritten due to controller
@@ -6208,7 +6208,7 @@ static int __devinit e1000_probe(struct pci_dev *pdev,
6208 6208
6209 /* Initialize link parameters. User can change them with ethtool */ 6209 /* Initialize link parameters. User can change them with ethtool */
6210 adapter->hw.mac.autoneg = 1; 6210 adapter->hw.mac.autoneg = 1;
6211 adapter->fc_autoneg = 1; 6211 adapter->fc_autoneg = true;
6212 adapter->hw.fc.requested_mode = e1000_fc_default; 6212 adapter->hw.fc.requested_mode = e1000_fc_default;
6213 adapter->hw.fc.current_mode = e1000_fc_default; 6213 adapter->hw.fc.current_mode = e1000_fc_default;
6214 adapter->hw.phy.autoneg_advertised = 0x2f; 6214 adapter->hw.phy.autoneg_advertised = 0x2f;