Commit 9004aa39 authored by Markus Elfring's avatar Markus Elfring Committed by Greg Kroah-Hartman
Browse files

net/wireless: Delete unnecessary checks before the macro call “dev_kfree_skb”



[ Upstream commit 868ad214 ]

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: default avatarMarkus Elfring <elfring@users.sourceforge.net>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
Stable-dep-of: 0c152867 ("wifi: iwlegacy: common: don't call dev_kfree_skb() under spin_lock_irqsave()")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent fe4d7280
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment