rtw89: fix uninitialized variable of rtw89_append_probe_req_ie()
authorPing-Ke Shih <pkshih@realtek.com>
Fri, 11 Mar 2022 02:00:07 +0000 (10:00 +0800)
committerKalle Valo <kvalo@kernel.org>
Wed, 16 Mar 2022 15:49:04 +0000 (17:49 +0200)
commitd179c1f1c3703d1a6f7a6f2ad08383220673240c
tree0361c8baf12d6dcea03ff1d611acda3f90e34023
parent5df2dc0087e91510f205c4d859c10c10202abe4c
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
drivers/net/wireless/realtek/rtw89/fw.c