summaryrefslogtreecommitdiffstats
path: root/drivers/net/e1000e/netdev.c
diff options
context:
space:
mode:
authorJesse Brandeburg2009-04-15 01:38:49 +0200
committerDavid S. Miller2009-04-15 01:38:49 +0200
commitdf26fd2c594a0876b4e6b802dee7753024e484d9 (patch)
tree712a390221b7fdc643f284cee1ac908669e31908 /drivers/net/e1000e/netdev.c
parentehea: Fix incomplete conversion to net_device_ops (diff)
downloadkernel-qcow2-linux-df26fd2c594a0876b4e6b802dee7753024e484d9.tar.gz
kernel-qcow2-linux-df26fd2c594a0876b4e6b802dee7753024e484d9.tar.xz
kernel-qcow2-linux-df26fd2c594a0876b4e6b802dee7753024e484d9.zip
e1000/e1000: fix compile warning
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>
Diffstat (limited to 'drivers/net/e1000e/netdev.c')
-rw-r--r--drivers/net/e1000e/netdev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/e1000e/netdev.c b/drivers/net/e1000e/netdev.c
index 409b58cad0e5..3b0f08773800 100644
--- a/drivers/net/e1000e/netdev.c
+++ b/drivers/net/e1000e/netdev.c
@@ -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;