Bluetooth: Remove some pointless conditionals before kfree_skb()
Remove some pointless conditionals before kfree_skb(). Signed-off-by: Wei Yongjun <yjwei@cn.fujitsu.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
This commit is contained in:
committed by
Marcel Holtmann
parent
2ae9a6be5f
commit
7585b97a48
@ -1565,8 +1565,7 @@ static void hci_cmd_task(unsigned long arg)
|
||||
|
||||
/* Send queued commands */
|
||||
if (atomic_read(&hdev->cmd_cnt) && (skb = skb_dequeue(&hdev->cmd_q))) {
|
||||
if (hdev->sent_cmd)
|
||||
kfree_skb(hdev->sent_cmd);
|
||||
kfree_skb(hdev->sent_cmd);
|
||||
|
||||
if ((hdev->sent_cmd = skb_clone(skb, GFP_ATOMIC))) {
|
||||
atomic_dec(&hdev->cmd_cnt);
|
||||
|
Reference in New Issue
Block a user