diff options
author | Wei Yongjun <yongjun_wei@trendmicro.com.cn> | 2012-08-28 15:12:48 +0200 |
---|---|---|
committer | Gustavo Padovan <gustavo.padovan@collabora.co.uk> | 2012-09-08 21:53:48 +0200 |
commit | 7923296f3f9eebbe3d7bb4c99d73bd7a226e0146 (patch) | |
tree | 4fb6b921c3470f1a96113e3e96982012205ddb23 /drivers/bluetooth | |
parent | Bluetooth: Use module_platform_driver() in btwilink.c file (diff) | |
download | linux-7923296f3f9eebbe3d7bb4c99d73bd7a226e0146.tar.xz linux-7923296f3f9eebbe3d7bb4c99d73bd7a226e0146.zip |
Bluetooth: btmrvl: remove pointless conditional before kfree_skb()
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>
Diffstat (limited to 'drivers/bluetooth')
-rw-r--r-- | drivers/bluetooth/btmrvl_sdio.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/bluetooth/btmrvl_sdio.c b/drivers/bluetooth/btmrvl_sdio.c index 03b3acba6143..3f4bfc814dc7 100644 --- a/drivers/bluetooth/btmrvl_sdio.c +++ b/drivers/bluetooth/btmrvl_sdio.c @@ -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; |