@@ -859,7 +859,7 @@ static bool e1000_clean_rx_irq(struct e1000_adapter *adapter,
859859 u32 length , staterr ;
860860 unsigned int i ;
861861 int cleaned_count = 0 ;
862- bool cleaned = 0 ;
862+ bool cleaned = false ;
863863 unsigned int total_rx_bytes = 0 , total_rx_packets = 0 ;
864864
865865 i = rx_ring -> next_to_clean ;
@@ -888,7 +888,7 @@ static bool e1000_clean_rx_irq(struct e1000_adapter *adapter,
888888
889889 next_buffer = & rx_ring -> buffer_info [i ];
890890
891- cleaned = 1 ;
891+ cleaned = true ;
892892 cleaned_count ++ ;
893893 dma_unmap_single (& pdev -> dev ,
894894 buffer_info -> dma ,
@@ -1157,7 +1157,7 @@ static bool e1000_clean_tx_irq(struct e1000_adapter *adapter)
11571157 * Detect a transmit hang in hardware, this serializes the
11581158 * check with the clearing of time_stamp and movement of i
11591159 */
1160- adapter -> detect_tx_hung = 0 ;
1160+ adapter -> detect_tx_hung = false ;
11611161 if (tx_ring -> buffer_info [i ].time_stamp &&
11621162 time_after (jiffies , tx_ring -> buffer_info [i ].time_stamp
11631163 + (adapter -> tx_timeout_factor * HZ )) &&
@@ -1192,7 +1192,7 @@ static bool e1000_clean_rx_irq_ps(struct e1000_adapter *adapter,
11921192 unsigned int i , j ;
11931193 u32 length , staterr ;
11941194 int cleaned_count = 0 ;
1195- bool cleaned = 0 ;
1195+ bool cleaned = false ;
11961196 unsigned int total_rx_bytes = 0 , total_rx_packets = 0 ;
11971197
11981198 i = rx_ring -> next_to_clean ;
@@ -1218,7 +1218,7 @@ static bool e1000_clean_rx_irq_ps(struct e1000_adapter *adapter,
12181218
12191219 next_buffer = & rx_ring -> buffer_info [i ];
12201220
1221- cleaned = 1 ;
1221+ cleaned = true ;
12221222 cleaned_count ++ ;
12231223 dma_unmap_single (& pdev -> dev , buffer_info -> dma ,
12241224 adapter -> rx_ps_bsize0 , DMA_FROM_DEVICE );
@@ -4257,7 +4257,7 @@ static void e1000_print_link_info(struct e1000_adapter *adapter)
42574257static bool e1000e_has_link (struct e1000_adapter * adapter )
42584258{
42594259 struct e1000_hw * hw = & adapter -> hw ;
4260- bool link_active = 0 ;
4260+ bool link_active = false ;
42614261 s32 ret_val = 0 ;
42624262
42634263 /*
@@ -4272,7 +4272,7 @@ static bool e1000e_has_link(struct e1000_adapter *adapter)
42724272 ret_val = hw -> mac .ops .check_for_link (hw );
42734273 link_active = !hw -> mac .get_link_status ;
42744274 } else {
4275- link_active = 1 ;
4275+ link_active = true ;
42764276 }
42774277 break ;
42784278 case e1000_media_type_fiber :
@@ -4371,7 +4371,7 @@ static void e1000_watchdog_task(struct work_struct *work)
43714371
43724372 if (link ) {
43734373 if (!netif_carrier_ok (netdev )) {
4374- bool txb2b = 1 ;
4374+ bool txb2b = true ;
43754375
43764376 /* Cancel scheduled suspend requests. */
43774377 pm_runtime_resume (netdev -> dev .parent );
@@ -4404,11 +4404,11 @@ static void e1000_watchdog_task(struct work_struct *work)
44044404 adapter -> tx_timeout_factor = 1 ;
44054405 switch (adapter -> link_speed ) {
44064406 case SPEED_10 :
4407- txb2b = 0 ;
4407+ txb2b = false ;
44084408 adapter -> tx_timeout_factor = 16 ;
44094409 break ;
44104410 case SPEED_100 :
4411- txb2b = 0 ;
4411+ txb2b = false ;
44124412 adapter -> tx_timeout_factor = 10 ;
44134413 break ;
44144414 }
@@ -4544,7 +4544,7 @@ static void e1000_watchdog_task(struct work_struct *work)
45444544 e1000e_flush_descriptors (adapter );
45454545
45464546 /* Force detection of hung controller every watchdog period */
4547- adapter -> detect_tx_hung = 1 ;
4547+ adapter -> detect_tx_hung = true ;
45484548
45494549 /*
45504550 * With 82571 controllers, LAA may be overwritten due to controller
@@ -6208,7 +6208,7 @@ static int __devinit e1000_probe(struct pci_dev *pdev,
62086208
62096209 /* Initialize link parameters. User can change them with ethtool */
62106210 adapter -> hw .mac .autoneg = 1 ;
6211- adapter -> fc_autoneg = 1 ;
6211+ adapter -> fc_autoneg = true ;
62126212 adapter -> hw .fc .requested_mode = e1000_fc_default ;
62136213 adapter -> hw .fc .current_mode = e1000_fc_default ;
62146214 adapter -> hw .phy .autoneg_advertised = 0x2f ;
0 commit comments