diff options
Diffstat (limited to 'drivers/net/tehuti.c')
-rw-r--r-- | drivers/net/tehuti.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/net/tehuti.c b/drivers/net/tehuti.c index 5b83fbb02013..a10a83a11d9f 100644 --- a/drivers/net/tehuti.c +++ b/drivers/net/tehuti.c | |||
@@ -265,8 +265,8 @@ static irqreturn_t bdx_isr_napi(int irq, void *dev) | |||
265 | bdx_isr_extra(priv, isr); | 265 | bdx_isr_extra(priv, isr); |
266 | 266 | ||
267 | if (isr & (IR_RX_DESC_0 | IR_TX_FREE_0)) { | 267 | if (isr & (IR_RX_DESC_0 | IR_TX_FREE_0)) { |
268 | if (likely(netif_rx_schedule_prep(ndev, &priv->napi))) { | 268 | if (likely(netif_rx_schedule_prep(&priv->napi))) { |
269 | __netif_rx_schedule(ndev, &priv->napi); | 269 | __netif_rx_schedule(&priv->napi); |
270 | RET(IRQ_HANDLED); | 270 | RET(IRQ_HANDLED); |
271 | } else { | 271 | } else { |
272 | /* NOTE: we get here if intr has slipped into window | 272 | /* NOTE: we get here if intr has slipped into window |
@@ -289,7 +289,6 @@ static irqreturn_t bdx_isr_napi(int irq, void *dev) | |||
289 | static int bdx_poll(struct napi_struct *napi, int budget) | 289 | static int bdx_poll(struct napi_struct *napi, int budget) |
290 | { | 290 | { |
291 | struct bdx_priv *priv = container_of(napi, struct bdx_priv, napi); | 291 | struct bdx_priv *priv = container_of(napi, struct bdx_priv, napi); |
292 | struct net_device *dev = priv->ndev; | ||
293 | int work_done; | 292 | int work_done; |
294 | 293 | ||
295 | ENTER; | 294 | ENTER; |
@@ -303,7 +302,7 @@ static int bdx_poll(struct napi_struct *napi, int budget) | |||
303 | * device lock and allow waiting tasks (eg rmmod) to advance) */ | 302 | * device lock and allow waiting tasks (eg rmmod) to advance) */ |
304 | priv->napi_stop = 0; | 303 | priv->napi_stop = 0; |
305 | 304 | ||
306 | netif_rx_complete(dev, napi); | 305 | netif_rx_complete(napi); |
307 | bdx_enable_interrupts(priv); | 306 | bdx_enable_interrupts(priv); |
308 | } | 307 | } |
309 | return work_done; | 308 | return work_done; |