Skip to content

Commit

Permalink
Bluetooth: btmrvl: remove pointless conditional before kfree_skb()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Wei Yongjun authored and Gustavo Padovan committed Sep 8, 2012
1 parent 9712ba0 commit 7923296
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/bluetooth/btmrvl_sdio.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 7923296

Please sign in to comment.