mirror of
https://github.com/torvalds/linux.git
synced 2026-07-29 02:31:27 +02:00
wifi: iwlwifi: mld: fix smatch warning
We dereference the mld_sta pointer before checking for NULL. But we do check the sta pointer, and sta != NULL means mld_sta != NULL, so there is no real issue. Fix it anyway to silence the warning. Link: https://patch.msgid.link/20260527200512.506707-2-miriam.rachel.korenblit@intel.com Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
This commit is contained in:
parent
8c1104b006
commit
be443355da
|
|
@ -563,7 +563,8 @@ iwl_mld_fill_tx_cmd(struct iwl_mld *mld, struct sk_buff *skb,
|
|||
* - when no sta is given.
|
||||
* - frames that are sent to an NMI sta, which is only used for management.
|
||||
*/
|
||||
if (unlikely(!sta || mld_sta->vif->type == NL80211_IFTYPE_NAN ||
|
||||
if (unlikely(!sta ||
|
||||
(mld_sta && mld_sta->vif->type == NL80211_IFTYPE_NAN) ||
|
||||
info->control.flags & IEEE80211_TX_CTRL_RATE_INJECT)) {
|
||||
flags |= IWL_TX_FLAGS_CMD_RATE;
|
||||
rate_n_flags = iwl_mld_get_tx_rate_n_flags(mld, info, sta,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user