From aa75b3e06e69294ff31f254f50e601acfd46dc8f Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Thu, 17 Oct 2019 17:22:02 -0500 Subject: [PATCH] ap: Remove unneeded NULL check sta is already dereferenced above, no need for the extra check here --- src/ap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ap.c b/src/ap.c index d7b93d88..cb7288db 100644 --- 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)