aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/jme.c
diff options
context:
space:
mode:
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