projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dc5771d
)
rtw88: Delete useless kfree code
author
Zheng Yongjun
<zhengyongjun3@huawei.com>
Wed, 16 Dec 2020 13:04:42 +0000
(21:04 +0800)
committer
Kalle Valo
<kvalo@codeaurora.org>
Thu, 14 Jan 2021 17:25:12 +0000
(19:25 +0200)
The parameter of kfree function is NULL, so kfree code is useless, delete it.
Signed-off-by: Zheng Yongjun <zhengyongjun3@huawei.com>
Acked-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link:
https://lore.kernel.org/r/20201216130442.13869-1-zhengyongjun3@huawei.com
drivers/net/wireless/realtek/rtw88/main.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/realtek/rtw88/main.c
b/drivers/net/wireless/realtek/rtw88/main.c
index e7c1ae454524b26eb4b42b8f45b938115331cdf4..16bacfadeb589fb4145b82d18c094306a7358b63 100644
(file)
--- a/
drivers/net/wireless/realtek/rtw88/main.c
+++ b/
drivers/net/wireless/realtek/rtw88/main.c
@@
-1276,7
+1276,6
@@
static void rtw_set_supported_band(struct ieee80211_hw *hw,
err_out:
rtw_err(rtwdev, "failed to set supported band\n");
- kfree(sband);
}
static void rtw_unset_supported_band(struct ieee80211_hw *hw,