f_phonet: dev_kfree_skb instead of dev_kfree_skb_any in TX callback
authorRémi Denis-Courmont <remi.denis-courmont@nokia.com>
Mon, 1 Jun 2009 01:18:55 +0000 (01:18 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 2 Jun 2009 07:17:44 +0000 (00:17 -0700)
Network device TX is never run in IRQ context, and skb is freed outside
of the IRQ-disabling spin lock. So checking for IRQ was a waste of time
here.

Signed-off-by: Rémi Denis-Courmont <remi.denis-courmont@nokia.com>
Signed-off-by: Felipe Balbi <felipe.balbi@nokia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/usb/gadget/f_phonet.c

index c1abeb89b413f101d38174726f713c666581600b..54451ee02298e2cb54d0a82c6c5d9c195c651b94 100644 (file)
@@ -255,7 +255,7 @@ out_unlock:
        spin_unlock_irqrestore(&port->lock, flags);
 out:
        if (unlikely(skb)) {
-               dev_kfree_skb_any(skb);
+               dev_kfree_skb(skb);
                dev->stats.tx_dropped++;
        }
        return 0;