Skip to content

Commit 217d32d

Browse files
Julia Lawalldavem330
authored andcommitted
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 <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent bc10f96 commit 217d32d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/forcedeth.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2468,7 +2468,7 @@ static int nv_tx_done_optimized(struct net_device *dev, int limit)
24682468
struct ring_desc_ex* orig_get_tx = np->get_tx.ex;
24692469

24702470
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) &&
24722472
(tx_work < limit)) {
24732473

24742474
dprintk(KERN_DEBUG "%s: nv_tx_done_optimized: flags 0x%x.\n",

0 commit comments

Comments
 (0)