Browse Source

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
Kabilan Kannan 7 years ago
parent
commit
0cc3fc4ad8
1 changed files with 1 additions and 1 deletions
  1. 1 1
      umac/tdls/core/src/wlan_tdls_mgmt.c

+ 1 - 1
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);
 	}