aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/hp100.c
diff options
context:
space:
mode:
authorStephen Hemminger <shemminger@vyatta.com>2009-08-31 15:50:58 -0400
committerDavid S. Miller <davem@davemloft.net>2009-09-01 04:14:07 -0400
commit61357325f377889a1daffa14962d705dc814dd0e (patch)
tree7b436f1097abbc5681de6d1e5901f62963b42220 /drivers/net/hp100.c
parentd0cf9c0dadcdc89a755bcb301cfc9c796eb28ccf (diff)
netdev: convert bulk of drivers to netdev_tx_t
In a couple of cases collapse some extra code like: int retval = NETDEV_TX_OK; ... return retval; into return NETDEV_TX_OK; Signed-off-by: Stephen Hemminger <shemminger@vyatta.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/hp100.c')
-rw-r--r--drivers/net/hp100.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/drivers/net/hp100.c b/drivers/net/hp100.c
index d1b63387e9bc..a9a1a99f02dd 100644
--- a/drivers/net/hp100.c
+++ b/drivers/net/hp100.c
@@ -240,9 +240,10 @@ static int hp100_probe1(struct net_device *dev, int ioaddr, u_char bus,
240 240
241static int hp100_open(struct net_device *dev); 241static int hp100_open(struct net_device *dev);
242static int hp100_close(struct net_device *dev); 242static int hp100_close(struct net_device *dev);
243static int hp100_start_xmit(struct sk_buff *skb, struct net_device *dev); 243static netdev_tx_t hp100_start_xmit(struct sk_buff *skb,
244static int hp100_start_xmit_bm(struct sk_buff *skb, 244 struct net_device *dev);
245 struct net_device *dev); 245static netdev_tx_t hp100_start_xmit_bm(struct sk_buff *skb,
246 struct net_device *dev);
246static void hp100_rx(struct net_device *dev); 247static void hp100_rx(struct net_device *dev);
247static struct net_device_stats *hp100_get_stats(struct net_device *dev); 248static struct net_device_stats *hp100_get_stats(struct net_device *dev);
248static void hp100_misc_interrupt(struct net_device *dev); 249static void hp100_misc_interrupt(struct net_device *dev);
@@ -1483,7 +1484,8 @@ static int hp100_check_lan(struct net_device *dev)
1483 */ 1484 */
1484 1485
1485/* tx function for busmaster mode */ 1486/* tx function for busmaster mode */
1486static int hp100_start_xmit_bm(struct sk_buff *skb, struct net_device *dev) 1487static netdev_tx_t hp100_start_xmit_bm(struct sk_buff *skb,
1488 struct net_device *dev)
1487{ 1489{
1488 unsigned long flags; 1490 unsigned long flags;
1489 int i, ok_flag; 1491 int i, ok_flag;
@@ -1635,7 +1637,8 @@ static void hp100_clean_txring(struct net_device *dev)
1635} 1637}
1636 1638
1637/* tx function for slave modes */ 1639/* tx function for slave modes */
1638static int hp100_start_xmit(struct sk_buff *skb, struct net_device *dev) 1640static netdev_tx_t hp100_start_xmit(struct sk_buff *skb,
1641 struct net_device *dev)
1639{ 1642{
1640 unsigned long flags; 1643 unsigned long flags;
1641 int i, ok_flag; 1644 int i, ok_flag;