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/amd8111e.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/amd8111e.c')
-rw-r--r-- | drivers/net/amd8111e.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/amd8111e.c b/drivers/net/amd8111e.c index 7709992bb6bf..cb9c95d3ed0a 100644 --- a/drivers/net/amd8111e.c +++ b/drivers/net/amd8111e.c | |||
@@ -831,7 +831,7 @@ static int amd8111e_rx_poll(struct napi_struct *napi, int budget) | |||
831 | if (rx_pkt_limit > 0) { | 831 | if (rx_pkt_limit > 0) { |
832 | /* Receive descriptor is empty now */ | 832 | /* Receive descriptor is empty now */ |
833 | spin_lock_irqsave(&lp->lock, flags); | 833 | spin_lock_irqsave(&lp->lock, flags); |
834 | __netif_rx_complete(napi); | 834 | __napi_complete(napi); |
835 | writel(VAL0|RINTEN0, mmio + INTEN0); | 835 | writel(VAL0|RINTEN0, mmio + INTEN0); |
836 | writel(VAL2 | RDMD0, mmio + CMD0); | 836 | writel(VAL2 | RDMD0, mmio + CMD0); |
837 | spin_unlock_irqrestore(&lp->lock, flags); | 837 | spin_unlock_irqrestore(&lp->lock, flags); |
@@ -1170,11 +1170,11 @@ static irqreturn_t amd8111e_interrupt(int irq, void *dev_id) | |||
1170 | 1170 | ||
1171 | /* Check if Receive Interrupt has occurred. */ | 1171 | /* Check if Receive Interrupt has occurred. */ |
1172 | if (intr0 & RINT0) { | 1172 | if (intr0 & RINT0) { |
1173 | if (netif_rx_schedule_prep(&lp->napi)) { | 1173 | if (napi_schedule_prep(&lp->napi)) { |
1174 | /* Disable receive interupts */ | 1174 | /* Disable receive interupts */ |
1175 | writel(RINTEN0, mmio + INTEN0); | 1175 | writel(RINTEN0, mmio + INTEN0); |
1176 | /* Schedule a polling routine */ | 1176 | /* Schedule a polling routine */ |
1177 | __netif_rx_schedule(&lp->napi); | 1177 | __napi_schedule(&lp->napi); |
1178 | } else if (intren0 & RINTEN0) { | 1178 | } else if (intren0 & RINTEN0) { |
1179 | printk("************Driver bug! \ | 1179 | printk("************Driver bug! \ |
1180 | interrupt while in poll\n"); | 1180 | interrupt while in poll\n"); |