]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
forcedeth: correct valid flag
authorJulia Lawall <julia@diku.dk>
Tue, 6 Jul 2010 05:15:47 +0000 (22:15 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 6 Jul 2010 05:15:47 +0000 (22:15 -0700)
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>
drivers/net/forcedeth.c

index 268ea4d566d732b1fd0705898d82dd854eb8be8f..9ef6a9d5fbcb6e11f3e7975897d3391e49431b5f 100644 (file)
@@ -2468,7 +2468,7 @@ static int nv_tx_done_optimized(struct net_device *dev, int limit)
        struct ring_desc_ex* orig_get_tx = np->get_tx.ex;
 
        while ((np->get_tx.ex != np->put_tx.ex) &&
-              !((flags = le32_to_cpu(np->get_tx.ex->flaglen)) & NV_TX_VALID) &&
+              !((flags = le32_to_cpu(np->get_tx.ex->flaglen)) & NV_TX2_VALID) &&
               (tx_work < limit)) {
 
                dprintk(KERN_DEBUG "%s: nv_tx_done_optimized: flags 0x%x.\n",