rtw88: Delete useless kfree code
authorZheng Yongjun <zhengyongjun3@huawei.com>
Wed, 16 Dec 2020 13:04:42 +0000 (21:04 +0800)
committerKalle 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

index e7c1ae454524b26eb4b42b8f45b938115331cdf4..16bacfadeb589fb4145b82d18c094306a7358b63 100644 (file)
@@ -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,