net: fix network drivers ndo_start_xmit() return values (part 2)
[deliverable/linux.git] / drivers / net / irda / kingsun-sir.c
index 9d813bc4502e721890aa59e1fc632ad7a383fbfc..c3e4e2c435baf1547d6e7659860fccc15edd6310 100644 (file)
@@ -156,9 +156,6 @@ static int kingsun_hard_xmit(struct sk_buff *skb, struct net_device *netdev)
        int wraplen;
        int ret = 0;
 
-       if (skb == NULL || netdev == NULL)
-               return -EINVAL;
-
        netif_stop_queue(netdev);
 
        /* the IRDA wrapping routines don't deal with non linear skb */
@@ -197,7 +194,7 @@ static int kingsun_hard_xmit(struct sk_buff *skb, struct net_device *netdev)
        dev_kfree_skb(skb);
        spin_unlock(&kingsun->lock);
 
-       return ret;
+       return NETDEV_TX_OK;
 }
 
 /* Receive callback function */
This page took 0.0245 seconds and 5 git commands to generate.