mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 15:27:29 +00:00
As clang points out, the vht_pfr is assigned to a struct member
without being initialized in one case:
drivers/net/wireless/ath/ath10k/mac.c:7528:7: error: variable 'vht_pfr' is used uninitialized whenever 'if' condition
is false [-Werror,-Wsometimes-uninitialized]
if (!ath10k_mac_can_set_bitrate_mask(ar, band, mask,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/wireless/ath/ath10k/mac.c:7551:20: note: uninitialized use occurs here
arvif->vht_pfr = vht_pfr;
^~~~~~~
drivers/net/wireless/ath/ath10k/mac.c:7528:3: note: remove the 'if' if its condition is always true
if (!ath10k_mac_can_set_bitrate_mask(ar, band, mask,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/wireless/ath/ath10k/mac.c:7483:12: note: initialize the variable 'vht_pfr' to silence this warning
u8 vht_pfr;
Add an explicit but probably incorrect initialization here.
I suspect we want a better fix here, but chose this approach to
illustrate the issue.
Fixes:
|
||
---|---|---|
.. | ||
ahb.c | ||
ahb.h | ||
bmi.c | ||
bmi.h | ||
ce.c | ||
ce.h | ||
core.c | ||
core.h | ||
coredump.c | ||
coredump.h | ||
debug.c | ||
debug.h | ||
debugfs_sta.c | ||
hif.h | ||
htc.c | ||
htc.h | ||
htt.c | ||
htt.h | ||
htt_rx.c | ||
htt_tx.c | ||
hw.c | ||
hw.h | ||
Kconfig | ||
mac.c | ||
mac.h | ||
Makefile | ||
p2p.c | ||
p2p.h | ||
pci.c | ||
pci.h | ||
qmi.c | ||
qmi.h | ||
qmi_wlfw_v01.c | ||
qmi_wlfw_v01.h | ||
rx_desc.h | ||
sdio.c | ||
sdio.h | ||
snoc.c | ||
snoc.h | ||
spectral.c | ||
spectral.h | ||
swap.c | ||
swap.h | ||
targaddrs.h | ||
testmode.c | ||
testmode.h | ||
testmode_i.h | ||
thermal.c | ||
thermal.h | ||
trace.c | ||
trace.h | ||
txrx.c | ||
txrx.h | ||
usb.c | ||
usb.h | ||
wmi-ops.h | ||
wmi-tlv.c | ||
wmi-tlv.h | ||
wmi.c | ||
wmi.h | ||
wow.c | ||
wow.h |