Procházet zdrojové kódy

qcacld-3.0: Fix static code analysis issue

In function wma_data_tx_ack_comp_hdlr, wma_handle, which is already
validated by wma_validate_handle, is NULL checked again after
dereferencing. The fix is to remove the irrelevant NULL check.

Change-Id: I9eebdb398e61d2991d0ff8e23cd08870d57707e5
CRs-Fixed: 3096718
Namita Nair před 3 roky
rodič
revize
5b2e81cd73
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      core/wma/src/wma_data.c

+ 1 - 1
core/wma/src/wma_data.c

@@ -1032,7 +1032,7 @@ wma_data_tx_ack_comp_hdlr(void *wma_context, qdf_nbuf_t netbuf, int32_t status)
 		goto free_nbuf;
 	}
 
-	if (wma_handle && wma_handle->umac_data_ota_ack_cb) {
+	if (wma_handle->umac_data_ota_ack_cb) {
 		struct wma_tx_ack_work_ctx *ack_work;
 
 		ack_work = qdf_mem_malloc(sizeof(struct wma_tx_ack_work_ctx));