diff options
author | Julia Lawall <julia@diku.dk> | 2010-07-06 01:15:47 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-07-06 01:15:47 -0400 |
commit | 217d32dc5f299c483ca0d3c8cc6811c72c0339c4 (patch) | |
tree | f85b243b15034d91168fc00732bc0d38f52a0a5e /drivers/net/forcedeth.c | |
parent | bc10f96757bd6ab3721510df8defa8f21c32f974 (diff) |
forcedeth: correct valid flag
Elsewhere in the "optimized" functions, the "2" constants are used.
NV_TX_VALID and NV_TX2_VALID have the same value.
Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/forcedeth.c')
-rw-r--r-- | drivers/net/forcedeth.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/forcedeth.c b/drivers/net/forcedeth.c index 268ea4d566d7..9ef6a9d5fbcb 100644 --- a/drivers/net/forcedeth.c +++ b/drivers/net/forcedeth.c | |||
@@ -2468,7 +2468,7 @@ static int nv_tx_done_optimized(struct net_device *dev, int limit) | |||
2468 | struct ring_desc_ex* orig_get_tx = np->get_tx.ex; | 2468 | struct ring_desc_ex* orig_get_tx = np->get_tx.ex; |
2469 | 2469 | ||
2470 | while ((np->get_tx.ex != np->put_tx.ex) && | 2470 | while ((np->get_tx.ex != np->put_tx.ex) && |
2471 | !((flags = le32_to_cpu(np->get_tx.ex->flaglen)) & NV_TX_VALID) && | 2471 | !((flags = le32_to_cpu(np->get_tx.ex->flaglen)) & NV_TX2_VALID) && |
2472 | (tx_work < limit)) { | 2472 | (tx_work < limit)) { |
2473 | 2473 | ||
2474 | dprintk(KERN_DEBUG "%s: nv_tx_done_optimized: flags 0x%x.\n", | 2474 | dprintk(KERN_DEBUG "%s: nv_tx_done_optimized: flags 0x%x.\n", |