Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 143868
b: refs/heads/master
c: f72f550
h: refs/heads/master
v: v3
  • Loading branch information
Erik Waling authored and David S. Miller committed Apr 17, 2009
1 parent 5583b70 commit ab05725
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 19 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ee33c58541bae92669fe64a39f695ab533d0de14
refs/heads/master: f72f550c5885419ee1b32f47213087e6640e766b
18 changes: 0 additions & 18 deletions trunk/drivers/net/macb.c
Original file line number Diff line number Diff line change
Expand Up @@ -521,27 +521,10 @@ static int macb_poll(struct napi_struct *napi, int budget)
macb_writel(bp, RSR, status);

work_done = 0;
if (!status) {
/*
* This may happen if an interrupt was pending before
* this function was called last time, and no packets
* have been received since.
*/
napi_complete(napi);
goto out;
}

dev_dbg(&bp->pdev->dev, "poll: status = %08lx, budget = %d\n",
(unsigned long)status, budget);

if (!(status & MACB_BIT(REC))) {
dev_warn(&bp->pdev->dev,
"No RX buffers complete, status = %02lx\n",
(unsigned long)status);
napi_complete(napi);
goto out;
}

work_done = macb_rx(bp, budget);
if (work_done < budget)
napi_complete(napi);
Expand All @@ -550,7 +533,6 @@ static int macb_poll(struct napi_struct *napi, int budget)
* We've done what we can to clean the buffers. Make sure we
* get notified when new packets arrive.
*/
out:
macb_writel(bp, IER, MACB_RX_INT_FLAGS);

/* TODO: Handle errors */
Expand Down

0 comments on commit ab05725

Please sign in to comment.