diff options
author | Ben Hutchings <bhutchings@solarflare.com> | 2009-01-19 19:43:59 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-01-21 17:33:50 -0500 |
commit | 288379f050284087578b77e04f040b57db3db3f8 (patch) | |
tree | ac5f5c83e2778a1966327d87316fc94067363b45 /drivers/net/pcnet32.c | |
parent | 627af770c63acddc2402dd19fec70df5c3ad8ab7 (diff) |
net: Remove redundant NAPI functions
Following the removal of the unused struct net_device * parameter from
the NAPI functions named *netif_rx_* in commit 908a7a1, they are
exactly equivalent to the corresponding *napi_* functions and are
therefore redundant.
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Acked-by: Neil Horman <nhorman@tuxdriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/pcnet32.c')
-rw-r--r-- | drivers/net/pcnet32.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/pcnet32.c b/drivers/net/pcnet32.c index 665a4286da39..80124fac65fa 100644 --- a/drivers/net/pcnet32.c +++ b/drivers/net/pcnet32.c | |||
@@ -1397,7 +1397,7 @@ static int pcnet32_poll(struct napi_struct *napi, int budget) | |||
1397 | if (work_done < budget) { | 1397 | if (work_done < budget) { |
1398 | spin_lock_irqsave(&lp->lock, flags); | 1398 | spin_lock_irqsave(&lp->lock, flags); |
1399 | 1399 | ||
1400 | __netif_rx_complete(napi); | 1400 | __napi_complete(napi); |
1401 | 1401 | ||
1402 | /* clear interrupt masks */ | 1402 | /* clear interrupt masks */ |
1403 | val = lp->a.read_csr(ioaddr, CSR3); | 1403 | val = lp->a.read_csr(ioaddr, CSR3); |
@@ -2592,14 +2592,14 @@ pcnet32_interrupt(int irq, void *dev_id) | |||
2592 | dev->name, csr0); | 2592 | dev->name, csr0); |
2593 | /* unlike for the lance, there is no restart needed */ | 2593 | /* unlike for the lance, there is no restart needed */ |
2594 | } | 2594 | } |
2595 | if (netif_rx_schedule_prep(&lp->napi)) { | 2595 | if (napi_schedule_prep(&lp->napi)) { |
2596 | u16 val; | 2596 | u16 val; |
2597 | /* set interrupt masks */ | 2597 | /* set interrupt masks */ |
2598 | val = lp->a.read_csr(ioaddr, CSR3); | 2598 | val = lp->a.read_csr(ioaddr, CSR3); |
2599 | val |= 0x5f00; | 2599 | val |= 0x5f00; |
2600 | lp->a.write_csr(ioaddr, CSR3, val); | 2600 | lp->a.write_csr(ioaddr, CSR3, val); |
2601 | mmiowb(); | 2601 | mmiowb(); |
2602 | __netif_rx_schedule(&lp->napi); | 2602 | __napi_schedule(&lp->napi); |
2603 | break; | 2603 | break; |
2604 | } | 2604 | } |
2605 | csr0 = lp->a.read_csr(ioaddr, CSR0); | 2605 | csr0 = lp->a.read_csr(ioaddr, CSR0); |