From: Nishant Chaprana Date: Fri, 28 Oct 2016 06:29:42 +0000 (+0530) Subject: Removed redundant NULL check for sta in hostapd_event_sta_low_ack() X-Git-Tag: hostap_2_7~2172 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5f99d96287256d0e981bafe5cb10491be83a0711;p=thirdparty%2Fhostap.git Removed redundant NULL check for sta in hostapd_event_sta_low_ack() Signed-off-by: Nishant Chaprana --- diff --git a/src/ap/drv_callbacks.c b/src/ap/drv_callbacks.c index 3552b3e0d..ac84137c8 100644 --- a/src/ap/drv_callbacks.c +++ b/src/ap/drv_callbacks.c @@ -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); }