Ping-Ke Shih <pkshih@xxxxxxxxxxx> wrote: > Map USB endpoints to hardware and AC queues according to number of USB > endpoints. However, original only give a warning for unexpected cases but > initial values are not given. Then, smatch warns: > > drivers/net/wireless/realtek/rtlwifi/rtl8192cu/hw.c:642 > _rtl92cu_init_chipn_two_out_ep_priority() error: uninitialized symbol 'valuelow'. > drivers/net/wireless/realtek/rtlwifi/rtl8192cu/hw.c:644 > _rtl92cu_init_chipn_two_out_ep_priority() error: uninitialized symbol 'valuehi'. > drivers/net/wireless/realtek/rtlwifi/rtl8192cu/hw.c:649 > _rtl92cu_init_chipn_two_out_ep_priority() error: uninitialized symbol 'valuehi'. > drivers/net/wireless/realtek/rtlwifi/rtl8192cu/hw.c:650 > _rtl92cu_init_chipn_two_out_ep_priority() error: uninitialized symbol 'valuelow'. > > The regular selection is high and low queues, so move default (unexpected) > case along with that. > > Compile tested only. > > Signed-off-by: Ping-Ke Shih <pkshih@xxxxxxxxxxx> Patch applied to wireless-next.git, thanks. 9208e85c6272 wifi: rtlwifi: set initial values for unexpected cases of USB endpoint priority -- https://patchwork.kernel.org/project/linux-wireless/patch/20240216033949.34765-1-pkshih@xxxxxxxxxxx/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches