aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/jme.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2009-03-05 05:06:47 -0500
committerDavid S. Miller <davem@davemloft.net>2009-03-05 05:06:47 -0500
commit508827ff0ac3981d420edac64a70de7f4e304d38 (patch)
treeb0cee8ddef9f0ceab68c388e4ae46b7295eb2cb5 /drivers/net/jme.c
parent2c3c3d02f28801d7ad2da4952b2c7ca6621ef221 (diff)
parent72e2240f181871675d3a979766330c91d48a1673 (diff)
Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6
Conflicts: drivers/net/tokenring/tmspci.c drivers/net/ucc_geth_mii.c
Diffstat (limited to 'drivers/net/jme.c')
-rw-r--r--drivers/net/jme.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/jme.c b/drivers/net/jme.c
index 4da81a3602dc..860dcd98a07c 100644
--- a/drivers/net/jme.c
+++ b/drivers/net/jme.c
@@ -956,13 +956,14 @@ jme_process_receive(struct jme_adapter *jme, int limit)
956 goto out_inc; 956 goto out_inc;
957 957
958 i = atomic_read(&rxring->next_to_clean); 958 i = atomic_read(&rxring->next_to_clean);
959 while (limit-- > 0) { 959 while (limit > 0) {
960 rxdesc = rxring->desc; 960 rxdesc = rxring->desc;
961 rxdesc += i; 961 rxdesc += i;
962 962
963 if ((rxdesc->descwb.flags & cpu_to_le16(RXWBFLAG_OWN)) || 963 if ((rxdesc->descwb.flags & cpu_to_le16(RXWBFLAG_OWN)) ||
964 !(rxdesc->descwb.desccnt & RXWBDCNT_WBCPL)) 964 !(rxdesc->descwb.desccnt & RXWBDCNT_WBCPL))
965 goto out; 965 goto out;
966 --limit;
966 967
967 desccnt = rxdesc->descwb.desccnt & RXWBDCNT_DCNT; 968 desccnt = rxdesc->descwb.desccnt & RXWBDCNT_DCNT;
968 969