Bluetooth: btmrvl: remove pointless conditional before kfree_skb()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Tue, 28 Aug 2012 13:12:48 +0000 (21:12 +0800)
committerGustavo Padovan <gustavo.padovan@collabora.co.uk>
Sat, 8 Sep 2012 19:53:48 +0000 (16:53 -0300)
Remove pointless conditional before kfree_skb().

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Acked-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
drivers/bluetooth/btmrvl_sdio.c

index 03b3acba61431a4cf7f0bfc0e5cadab2ef9b76ce..3f4bfc814dc7d5a0382635dbe16a41af413e59fe 100644 (file)
@@ -600,8 +600,7 @@ static int btmrvl_sdio_card_to_host(struct btmrvl_private *priv)
 exit:
        if (ret) {
                hdev->stat.err_rx++;
-               if (skb)
-                       kfree_skb(skb);
+               kfree_skb(skb);
        }
 
        return ret;