From 0cc3fc4ad8c32bd7ff38e7a01ddd4a4ac60eb3c2 Mon Sep 17 00:00:00 2001 From: Kabilan Kannan Date: Thu, 29 Mar 2018 12:27:35 -0700 Subject: [PATCH] qcacmn: Fix compilation warnings in TDLS Fix the warning issue in TDLS, which popped up with newer compiler options. Change-Id: I1516a47ec01faa9315d2045ebcfe49097680e80d CRs-Fixed: 2215517 --- umac/tdls/core/src/wlan_tdls_mgmt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/umac/tdls/core/src/wlan_tdls_mgmt.c b/umac/tdls/core/src/wlan_tdls_mgmt.c index b271b3209a57..00d31dad7d63 100644 --- a/umac/tdls/core/src/wlan_tdls_mgmt.c +++ b/umac/tdls/core/src/wlan_tdls_mgmt.c @@ -284,7 +284,7 @@ static QDF_STATUS tdls_activate_send_mgmt_request( qdf_mem_copy(tdls_mgmt_req->peer_mac.bytes, action_req->tdls_mgmt.peer_mac.bytes, QDF_MAC_ADDR_SIZE); - if (action_req->tdls_mgmt.len && action_req->tdls_mgmt.buf) { + if (action_req->tdls_mgmt.len) { qdf_mem_copy(tdls_mgmt_req->add_ie, action_req->tdls_mgmt.buf, action_req->tdls_mgmt.len); }