commit aa75b3e06e69294ff31f254f50e601acfd46dc8f
parent b6554ee41c79869b3b3abb86e8538c898c863ad6
Author: Denis Kenzior <denkenz@gmail.com>
Date: Thu, 17 Oct 2019 17:22:02 -0500
ap: Remove unneeded NULL check
sta is already dereferenced above, no need for the extra check here
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/ap.c b/src/ap.c
@@ -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)