aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wan/dlci.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wan/dlci.c')
-rw-r--r--drivers/net/wan/dlci.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wan/dlci.c b/drivers/net/wan/dlci.c
index 2fa275a58f9d..8526b6d1ee4d 100644
--- a/drivers/net/wan/dlci.c
+++ b/drivers/net/wan/dlci.c
@@ -194,7 +194,7 @@ static int dlci_transmit(struct sk_buff *skb, struct net_device *dev)
194 ret = 0; 194 ret = 0;
195 195
196 if (!skb || !dev) 196 if (!skb || !dev)
197 return(0); 197 return NETDEV_TX_OK;
198 198
199 dlp = netdev_priv(dev); 199 dlp = netdev_priv(dev);
200 200
@@ -219,7 +219,7 @@ static int dlci_transmit(struct sk_buff *skb, struct net_device *dev)
219 /* Alan Cox recommends always returning 0, and always freeing the packet */ 219 /* Alan Cox recommends always returning 0, and always freeing the packet */
220 /* experience suggest a slightly more conservative approach */ 220 /* experience suggest a slightly more conservative approach */
221 221
222 if (!ret) 222 if (ret == NETDEV_TX_OK)
223 { 223 {
224 dev_kfree_skb(skb); 224 dev_kfree_skb(skb);
225 netif_wake_queue(dev); 225 netif_wake_queue(dev);