diff mbox

Removed redundant NULL check for sta in hostapd_event_sta_low_ack()

Message ID 1477636182-1888-1-git-send-email-n.chaprana@samsung.com
State Accepted
Headers show

Commit Message

Nishant Chaprana Oct. 28, 2016, 6:29 a.m. UTC
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
---
 src/ap/drv_callbacks.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

Comments

Jouni Malinen Oct. 28, 2016, 10:34 p.m. UTC | #1
Thanks, applied.
diff mbox

Patch

diff --git a/src/ap/drv_callbacks.c b/src/ap/drv_callbacks.c
index 3552b3e..ac84137 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);
 }