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>
This commit is contained in:
committed by
David S. Miller
parent
627af770c6
commit
288379f050
@@ -1397,7 +1397,7 @@ static int pcnet32_poll(struct napi_struct *napi, int budget)
|
||||
if (work_done < budget) {
|
||||
spin_lock_irqsave(&lp->lock, flags);
|
||||
|
||||
__netif_rx_complete(napi);
|
||||
__napi_complete(napi);
|
||||
|
||||
/* clear interrupt masks */
|
||||
val = lp->a.read_csr(ioaddr, CSR3);
|
||||
@@ -2592,14 +2592,14 @@ pcnet32_interrupt(int irq, void *dev_id)
|
||||
dev->name, csr0);
|
||||
/* unlike for the lance, there is no restart needed */
|
||||
}
|
||||
if (netif_rx_schedule_prep(&lp->napi)) {
|
||||
if (napi_schedule_prep(&lp->napi)) {
|
||||
u16 val;
|
||||
/* set interrupt masks */
|
||||
val = lp->a.read_csr(ioaddr, CSR3);
|
||||
val |= 0x5f00;
|
||||
lp->a.write_csr(ioaddr, CSR3, val);
|
||||
mmiowb();
|
||||
__netif_rx_schedule(&lp->napi);
|
||||
__napi_schedule(&lp->napi);
|
||||
break;
|
||||
}
|
||||
csr0 = lp->a.read_csr(ioaddr, CSR0);
|
||||
|
Reference in New Issue
Block a user