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/typhoon.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/typhoon.c')
-rw-r--r-- | drivers/net/typhoon.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/typhoon.c b/drivers/net/typhoon.c index 3af9a9516ccb..dcff5ade6d08 100644 --- a/drivers/net/typhoon.c +++ b/drivers/net/typhoon.c | |||
@@ -1783,7 +1783,7 @@ typhoon_poll(struct napi_struct *napi, int budget) | |||
1783 | } | 1783 | } |
1784 | 1784 | ||
1785 | if (work_done < budget) { | 1785 | if (work_done < budget) { |
1786 | netif_rx_complete(napi); | 1786 | napi_complete(napi); |
1787 | iowrite32(TYPHOON_INTR_NONE, | 1787 | iowrite32(TYPHOON_INTR_NONE, |
1788 | tp->ioaddr + TYPHOON_REG_INTR_MASK); | 1788 | tp->ioaddr + TYPHOON_REG_INTR_MASK); |
1789 | typhoon_post_pci_writes(tp->ioaddr); | 1789 | typhoon_post_pci_writes(tp->ioaddr); |
@@ -1806,10 +1806,10 @@ typhoon_interrupt(int irq, void *dev_instance) | |||
1806 | 1806 | ||
1807 | iowrite32(intr_status, ioaddr + TYPHOON_REG_INTR_STATUS); | 1807 | iowrite32(intr_status, ioaddr + TYPHOON_REG_INTR_STATUS); |
1808 | 1808 | ||
1809 | if (netif_rx_schedule_prep(&tp->napi)) { | 1809 | if (napi_schedule_prep(&tp->napi)) { |
1810 | iowrite32(TYPHOON_INTR_ALL, ioaddr + TYPHOON_REG_INTR_MASK); | 1810 | iowrite32(TYPHOON_INTR_ALL, ioaddr + TYPHOON_REG_INTR_MASK); |
1811 | typhoon_post_pci_writes(ioaddr); | 1811 | typhoon_post_pci_writes(ioaddr); |
1812 | __netif_rx_schedule(&tp->napi); | 1812 | __napi_schedule(&tp->napi); |
1813 | } else { | 1813 | } else { |
1814 | printk(KERN_ERR "%s: Error, poll already scheduled\n", | 1814 | printk(KERN_ERR "%s: Error, poll already scheduled\n", |
1815 | dev->name); | 1815 | dev->name); |