mirror of
https://github.com/torvalds/linux.git
synced 2026-06-05 21:15:53 +02:00
staging: wfx: remove redundant test while calling wfx_update_pm()
Condition about wvif->state and wvif->bss_params.aid is already checked at beginning of wfx_update_pm(). Signed-off-by: Jérôme Pouiller <jerome.pouiller@silabs.com> Link: https://lore.kernel.org/r/20191217161318.31402-34-Jerome.Pouiller@silabs.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
8dd5bb6631
commit
ad41f7196b
|
|
@ -1448,8 +1448,7 @@ int wfx_config(struct ieee80211_hw *hw, u32 changed)
|
|||
2, 255);
|
||||
}
|
||||
}
|
||||
if (wvif->state == WFX_STATE_STA && wvif->bss_params.aid)
|
||||
wfx_update_pm(wvif);
|
||||
wfx_update_pm(wvif);
|
||||
}
|
||||
wvif = wdev_to_wvif(wdev, 0);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user