提交 8873e8f5 编写于 作者: Z Zheng Yongjun 提交者: Kalle Valo

rtw88: Delete useless kfree code

The parameter of kfree function is NULL, so kfree code is useless, delete it.
Signed-off-by: NZheng Yongjun <zhengyongjun3@huawei.com>
Acked-by: NPing-Ke Shih <pkshih@realtek.com>
Signed-off-by: NKalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20201216130442.13869-1-zhengyongjun3@huawei.com
上级 dc5771df
......@@ -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,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册