Commit ad41f719 authored by Jérôme Pouiller's avatar Jérôme Pouiller Committed by Greg Kroah-Hartman

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: default avatarJérôme Pouiller <jerome.pouiller@silabs.com>
Link: https://lore.kernel.org/r/20191217161318.31402-34-Jerome.Pouiller@silabs.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 8dd5bb66
......@@ -1448,7 +1448,6 @@ 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);
}
wvif = wdev_to_wvif(wdev, 0);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment