]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
e1000/e1000: fix compile warning
authorJesse Brandeburg <jesse.brandeburg@intel.com>
Tue, 14 Apr 2009 23:38:49 +0000 (16:38 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 14 Apr 2009 23:38:49 +0000 (16:38 -0700)
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 <jesse.brandeburg@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/e1000/e1000_main.c
drivers/net/e1000e/netdev.c

index ddc5c533e89c41d6e9468c7b3051301ffd0b2429..4cd8b25c7ed7e691b0fe6ee53aede0647768973b 100644 (file)
@@ -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;
index 409b58cad0e50df0c34e77f6f31a943b0c306029..3b0f0877380026504978082e6b90dd373594c26a 100644 (file)
@@ -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;