> -----Original Message----- > From: Dan Carpenter <dan.carpenter@xxxxxxxxxx> > Sent: Tuesday, November 30, 2021 6:43 PM > To: Pkshih <pkshih@xxxxxxxxxxx> > Cc: linux-wireless@xxxxxxxxxxxxxxx > Subject: [bug report] rtw89: add Realtek 802.11ax driver > > Hello Ping-Ke Shih, > > The patch e3ec7017f6a2: "rtw89: add Realtek 802.11ax driver" from Oct > 11, 2021, leads to the following Smatch static checker warning: > > drivers/net/wireless/realtek/rtw89/mac80211.c:31 rtw89_ops_tx() > error: uninitialized symbol 'qsel'. > > drivers/net/wireless/realtek/rtw89/mac80211.c > 16 static void rtw89_ops_tx(struct ieee80211_hw *hw, > 17 struct ieee80211_tx_control *control, > 18 struct sk_buff *skb) > 19 { > 20 struct rtw89_dev *rtwdev = hw->priv; > 21 struct ieee80211_tx_info *info = IEEE80211_SKB_CB(skb); > 22 struct ieee80211_vif *vif = info->control.vif; > 23 struct ieee80211_sta *sta = control->sta; > 24 int ret, qsel; > 25 > 26 ret = rtw89_core_tx_write(rtwdev, vif, sta, skb, &qsel); > 27 if (ret) { > 28 rtw89_err(rtwdev, "failed to transmit skb: %d\n", ret); > 29 ieee80211_free_txskb(hw, skb); > > Missing return; here? Yes. Thanks for the finding. I will send a patch to fix it. -- Ping-Ke