diff options
Diffstat (limited to 'drivers/char/synclink.c')
-rw-r--r-- | drivers/char/synclink.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/char/synclink.c b/drivers/char/synclink.c index 813552f14884..4846b73ef28d 100644 --- a/drivers/char/synclink.c +++ b/drivers/char/synclink.c | |||
@@ -7697,10 +7697,9 @@ static int hdlcdev_attach(struct net_device *dev, unsigned short encoding, | |||
7697 | * | 7697 | * |
7698 | * skb socket buffer containing HDLC frame | 7698 | * skb socket buffer containing HDLC frame |
7699 | * dev pointer to network device structure | 7699 | * dev pointer to network device structure |
7700 | * | ||
7701 | * returns 0 if success, otherwise error code | ||
7702 | */ | 7700 | */ |
7703 | static int hdlcdev_xmit(struct sk_buff *skb, struct net_device *dev) | 7701 | static netdev_tx_t hdlcdev_xmit(struct sk_buff *skb, |
7702 | struct net_device *dev) | ||
7704 | { | 7703 | { |
7705 | struct mgsl_struct *info = dev_to_port(dev); | 7704 | struct mgsl_struct *info = dev_to_port(dev); |
7706 | unsigned long flags; | 7705 | unsigned long flags; |
@@ -7731,7 +7730,7 @@ static int hdlcdev_xmit(struct sk_buff *skb, struct net_device *dev) | |||
7731 | usc_start_transmitter(info); | 7730 | usc_start_transmitter(info); |
7732 | spin_unlock_irqrestore(&info->irq_spinlock,flags); | 7731 | spin_unlock_irqrestore(&info->irq_spinlock,flags); |
7733 | 7732 | ||
7734 | return 0; | 7733 | return NETDEV_TX_OK; |
7735 | } | 7734 | } |
7736 | 7735 | ||
7737 | /** | 7736 | /** |