diff options
author | Ping-Ke Shih <pkshih@realtek.com> | 2022-03-11 03:00:07 +0100 |
---|---|---|
committer | Kalle Valo <kvalo@kernel.org> | 2022-03-16 16:49:04 +0100 |
commit | d179c1f1c3703d1a6f7a6f2ad08383220673240c (patch) | |
tree | 0361c8baf12d6dcea03ff1d611acda3f90e34023 | |
parent | MAINTAINERS: fix ath11k DT bindings location (diff) | |
download | linux-d179c1f1c3703d1a6f7a6f2ad08383220673240c.tar.xz linux-d179c1f1c3703d1a6f7a6f2ad08383220673240c.zip |
rtw89: fix uninitialized variable of rtw89_append_probe_req_ie()
smatch reports that:
fw.c:1997 rtw89_append_probe_req_ie() error: uninitialized symbol 'ret'.
This can be a issue only if no band is supported by the chip, but it is
impossible. So, it is still safe without this patch.
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20220311020007.20414-1-pkshih@realtek.com
-rw-r--r-- | drivers/net/wireless/realtek/rtw89/fw.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/realtek/rtw89/fw.c b/drivers/net/wireless/realtek/rtw89/fw.c index 2fe091cc12c0..6deaf8eec6b4 100644 --- a/drivers/net/wireless/realtek/rtw89/fw.c +++ b/drivers/net/wireless/realtek/rtw89/fw.c @@ -1964,7 +1964,7 @@ static int rtw89_append_probe_req_ie(struct rtw89_dev *rtwdev, struct ieee80211_scan_ies *ies = rtwvif->scan_ies; struct rtw89_pktofld_info *info; struct sk_buff *new; - int ret; + int ret = 0; u8 band; for (band = NL80211_BAND_2GHZ; band < NUM_NL80211_BANDS; band++) { |