Răsfoiți Sursa

qcacmn: Remove unnecessary NULL check before dereferenced

Pointer is dereferenced after it was positively checked for NULL.
Since the handle should already check for null when we call
cds_get_context, when we recieve the handle as an argument, we should
know that it is not null. So remove the unnecessary null check here.

Change-Id: I9e46c8151dec3ff9d36292d7d306f8bf3ae61b7d
CRs-Fixed: 1111505
Yun Park 8 ani în urmă
părinte
comite
42096a2a7a
1 a modificat fișierele cu 0 adăugiri și 2 ștergeri
  1. 0 2
      hif/src/ce/ce_main.c

+ 0 - 2
hif/src/ce/ce_main.c

@@ -2625,8 +2625,6 @@ void *hif_ce_get_lro_ctx(struct hif_opaque_softc *hif_hdl, int ctx_id)
 	struct CE_state *ce_state;
 	struct hif_softc *scn = HIF_GET_SOFTC(hif_hdl);
 
-	QDF_ASSERT(scn != NULL);
-
 	ce_state = scn->ce_id_to_state[ctx_id];
 
 	return ce_state->lro_data;