]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Removed redundant NULL check for sta in hostapd_event_sta_low_ack()
authorNishant Chaprana <n.chaprana@samsung.com>
Fri, 28 Oct 2016 06:29:42 +0000 (11:59 +0530)
committerJouni Malinen <j@w1.fi>
Fri, 28 Oct 2016 16:06:20 +0000 (19:06 +0300)
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
src/ap/drv_callbacks.c

index 3552b3e0d53b6ee9388d3c8437201e0cf67cbbe0..ac84137c87a851d8d5b4be473e0fd13e577e3493 100644 (file)
@@ -471,8 +471,7 @@ void hostapd_event_sta_low_ack(struct hostapd_data *hapd, const u8 *addr)
                       HOSTAPD_LEVEL_INFO,
                       "disconnected due to excessive missing ACKs");
        hostapd_drv_sta_disassoc(hapd, addr, WLAN_REASON_DISASSOC_LOW_ACK);
-       if (sta)
-               ap_sta_disassociate(hapd, sta, WLAN_REASON_DISASSOC_LOW_ACK);
+       ap_sta_disassociate(hapd, sta, WLAN_REASON_DISASSOC_LOW_ACK);
 }