net/wireless: Delete unnecessary checks before the macro call “dev_kfree_skb”
The dev_kfree_skb() function performs also input parameter validation. Thus the test around the shown calls is not needed. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring <elfring@users.sourceforge.net> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
This commit is contained in:

committed by
Kalle Valo

parent
52d4261862
commit
868ad21496
@@ -9481,7 +9481,5 @@ void ath10k_wmi_detach(struct ath10k *ar)
|
||||
}
|
||||
|
||||
cancel_work_sync(&ar->svc_rdy_work);
|
||||
|
||||
if (ar->svc_rdy_skb)
|
||||
dev_kfree_skb(ar->svc_rdy_skb);
|
||||
dev_kfree_skb(ar->svc_rdy_skb);
|
||||
}
|
||||
|
Reference in New Issue
Block a user