mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-01 06:33:07 +00:00
nfc: st21nfca: remove unnecessary skb check before kfree_skb()
The skb will be checked in kfree_skb(), so remove the outside check. Signed-off-by: Yang Yingliang <yangyingliang@huawei.com> Reviewed-by: Krzysztof Kozlowski <krzk@kernel.org> Link: https://lore.kernel.org/r/20220318072728.2659578-1-yangyingliang@huawei.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
49270afa03
commit
800c326bfa
1 changed files with 1 additions and 2 deletions
|
@ -570,7 +570,6 @@ static int st21nfca_hci_i2c_remove(struct i2c_client *client)
|
||||||
|
|
||||||
if (phy->powered)
|
if (phy->powered)
|
||||||
st21nfca_hci_i2c_disable(phy);
|
st21nfca_hci_i2c_disable(phy);
|
||||||
if (phy->pending_skb)
|
|
||||||
kfree_skb(phy->pending_skb);
|
kfree_skb(phy->pending_skb);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in a new issue