3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2025-01-03 10:32:33 +01:00

ap: Remove unneeded NULL check

sta is already dereferenced above, no need for the extra check here
This commit is contained in:
Denis Kenzior 2019-10-17 17:22:02 -05:00
parent b6554ee41c
commit aa75b3e06e

View File

@ -951,7 +951,7 @@ bad_frame:
*
* For now, we need to drop the RSNA.
*/
if (sta && sta->associated && sta->rsna)
if (sta->associated && sta->rsna)
ap_drop_rsna(sta);
if (rates)