summaryrefslogtreecommitdiffstats
path: root/drivers/bluetooth
diff options
context:
space:
mode:
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>2012-08-28 21:12:48 +0800
committerGustavo Padovan <gustavo.padovan@collabora.co.uk>2012-09-08 16:53:48 -0300
commit7923296f3f9eebbe3d7bb4c99d73bd7a226e0146 (patch)
tree4fb6b921c3470f1a96113e3e96982012205ddb23 /drivers/bluetooth
parent9712ba0bec83579ae63e4d61f79e18c7d0d9d3fd (diff)
downloadop-kernel-dev-7923296f3f9eebbe3d7bb4c99d73bd7a226e0146.zip
op-kernel-dev-7923296f3f9eebbe3d7bb4c99d73bd7a226e0146.tar.gz
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.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/bluetooth/btmrvl_sdio.c b/drivers/bluetooth/btmrvl_sdio.c
index 03b3acb..3f4bfc8 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;
OpenPOWER on IntegriCloud