OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
49270af
)
nfc: st21nfca: remove unnecessary skb check before kfree_skb()
author
Yang Yingliang
<yangyingliang@huawei.com>
Fri, 18 Mar 2022 07:27:28 +0000
(15:27 +0800)
committer
Jakub Kicinski
<kuba@kernel.org>
Sat, 19 Mar 2022 04:41:51 +0000
(21:41 -0700)
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>
drivers/nfc/st21nfca/i2c.c
patch
|
blob
|
history
diff --git
a/drivers/nfc/st21nfca/i2c.c
b/drivers/nfc/st21nfca/i2c.c
index
a86b5ed
..
42dc0e5
100644
(file)
--- a/
drivers/nfc/st21nfca/i2c.c
+++ b/
drivers/nfc/st21nfca/i2c.c
@@
-570,8
+570,7
@@
static int st21nfca_hci_i2c_remove(struct i2c_client *client)
if (phy->powered)
st21nfca_hci_i2c_disable(phy);
- if (phy->pending_skb)
- kfree_skb(phy->pending_skb);
+ kfree_skb(phy->pending_skb);
return 0;
}