mirror of
git://git.yoctoproject.org/linux-yocto.git
synced 2025-10-23 07:23:12 +02:00
wifi: mac80211: Remove unused basic_rates variable
The basic_rates variable was passed to mesh_sta_info_init as an out parameter even though the result is not used. Passing NULL instead is safe here, so do that. Signed-off-by: Benjamin Berg <benjamin.berg@intel.com> Reviewed-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com> Link: https://patch.msgid.link/20250101070249.23a86a9bad0c.If79bc2c1c98d01cfb4c7e93c18b198fe6c6ea44c@changeid Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
parent
00e3daadfe
commit
c30e9a8558
|
@ -432,15 +432,14 @@ static void mesh_sta_info_init(struct ieee80211_sub_if_data *sdata,
|
||||||
{
|
{
|
||||||
struct ieee80211_local *local = sdata->local;
|
struct ieee80211_local *local = sdata->local;
|
||||||
struct ieee80211_supported_band *sband;
|
struct ieee80211_supported_band *sband;
|
||||||
u32 rates, basic_rates = 0, changed = 0;
|
u32 rates, changed = 0;
|
||||||
enum ieee80211_sta_rx_bandwidth bw = sta->sta.deflink.bandwidth;
|
enum ieee80211_sta_rx_bandwidth bw = sta->sta.deflink.bandwidth;
|
||||||
|
|
||||||
sband = ieee80211_get_sband(sdata);
|
sband = ieee80211_get_sband(sdata);
|
||||||
if (!sband)
|
if (!sband)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
rates = ieee80211_sta_get_rates(sdata, elems, sband->band,
|
rates = ieee80211_sta_get_rates(sdata, elems, sband->band, NULL);
|
||||||
&basic_rates);
|
|
||||||
|
|
||||||
spin_lock_bh(&sta->mesh->plink_lock);
|
spin_lock_bh(&sta->mesh->plink_lock);
|
||||||
sta->deflink.rx_stats.last_rx = jiffies;
|
sta->deflink.rx_stats.last_rx = jiffies;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user