e1000/e1000: fix compile warning
Subsystems (2)
PATCH 1/1 e1000/e1000: fix compile warning
From: Jesse Brandeburg <[email protected]>
e1000/e1000e compile report a possible unused variable, fix that for now. Shortly after this a small refactor and bug fix will follow in the same code.
Signed-off-by Jesse Brandeburg <[email protected]>
Signed-off-by Jeff Kirsher <[email protected]>
---
drivers/net/e1000/e1000_main.c | 2 +- drivers/net/e1000e/netdev.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
drivers/net/e1000/e1000_main.c +1 -1
@@ -3834,7 +3834,7 @@ static bool e1000_clean_tx_irq(struct e1000_adapter *adapter,struct e1000_buffer *buffer_info;unsigned int i, eop;unsigned int count =0 ; -bool cleaned; +bool cleaned = false;unsigned int total_tx_bytes=0 , total_tx_packets=0 ; i = tx_ring->next_to_clean;
drivers/net/e1000e/netdev.c +1 -1
@@ -621,7 +621,7 @@ static bool e1000_clean_tx_irq(struct e1000_adapter *adapter)struct e1000_buffer *buffer_info;unsigned int i, eop;unsigned int count =0 ; -bool cleaned; +bool cleaned = false;unsigned int total_tx_bytes =0 , total_tx_packets =0 ; i = tx_ring->next_to_clean;
From: Jeff Kirsher <[email protected]>
Date: Tue, 14 Apr 2009 07:42:49 -0700
Quoted 6 lines
e1000/e1000e compile report a possible unused variable, fix that for now. Shortly after this a small refactor and bug fix will follow in the same code.
Signed-off-by Jesse Brandeburg <[email protected]>Signed-off-by Jeff Kirsher <[email protected]>
Applied, thanks.