diff options
Diffstat (limited to 'drivers/net/arm/ixp4xx_eth.c')
-rw-r--r-- | drivers/net/arm/ixp4xx_eth.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/arm/ixp4xx_eth.c b/drivers/net/arm/ixp4xx_eth.c index c617b64c288e..9b777d9433cd 100644 --- a/drivers/net/arm/ixp4xx_eth.c +++ b/drivers/net/arm/ixp4xx_eth.c | |||
@@ -522,7 +522,6 @@ static int eth_poll(struct napi_struct *napi, int budget) | |||
522 | #endif | 522 | #endif |
523 | 523 | ||
524 | if ((n = queue_get_desc(rxq, port, 0)) < 0) { | 524 | if ((n = queue_get_desc(rxq, port, 0)) < 0) { |
525 | received = 0; /* No packet received */ | ||
526 | #if DEBUG_RX | 525 | #if DEBUG_RX |
527 | printk(KERN_DEBUG "%s: eth_poll netif_rx_complete\n", | 526 | printk(KERN_DEBUG "%s: eth_poll netif_rx_complete\n", |
528 | dev->name); | 527 | dev->name); |
@@ -543,7 +542,7 @@ static int eth_poll(struct napi_struct *napi, int budget) | |||
543 | printk(KERN_DEBUG "%s: eth_poll all done\n", | 542 | printk(KERN_DEBUG "%s: eth_poll all done\n", |
544 | dev->name); | 543 | dev->name); |
545 | #endif | 544 | #endif |
546 | return 0; /* all work done */ | 545 | return received; /* all work done */ |
547 | } | 546 | } |
548 | 547 | ||
549 | desc = rx_desc_ptr(port, n); | 548 | desc = rx_desc_ptr(port, n); |