diff options
author | Zheng Yongjun <zhengyongjun3@huawei.com> | 2020-12-16 21:04:42 +0800 |
---|---|---|
committer | Kalle Valo <kvalo@codeaurora.org> | 2021-01-14 19:25:12 +0200 |
commit | 8873e8f56f74013ecf7aca6d8e66c600dc40ce64 (patch) | |
tree | a51f4f83e8b5e33c35f12ed02e60c611b18ac61b /drivers/net/wireless/realtek/rtw88 | |
parent | dc5771dfb27d6da7c8d866a358ff5c86e95f06c6 (diff) | |
download | linux-stable-8873e8f56f74013ecf7aca6d8e66c600dc40ce64.tar.gz linux-stable-8873e8f56f74013ecf7aca6d8e66c600dc40ce64.tar.bz2 linux-stable-8873e8f56f74013ecf7aca6d8e66c600dc40ce64.zip |
rtw88: Delete useless kfree code
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
Diffstat (limited to 'drivers/net/wireless/realtek/rtw88')
-rw-r--r-- | drivers/net/wireless/realtek/rtw88/main.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/wireless/realtek/rtw88/main.c b/drivers/net/wireless/realtek/rtw88/main.c index e7c1ae454524..16bacfadeb58 100644 --- 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, |