Pārlūkot izejas kodu

qcacld-3.0: Remove logically dead code in wlansap_start_bss

Remove redundant NULL check for hHal in wlansap_start_bss.

Change-Id: Iaac53d1203ec3bc4a6f12dd1db3634b5636ae3b2
CRs-Fixed: 2267073
Abhinav Kumar 7 gadi atpakaļ
vecāks
revīzija
dd01d8df25
1 mainītis faili ar 0 papildinājumiem un 7 dzēšanām
  1. 0 7
      core/sap/src/sap_module.c

+ 0 - 7
core/sap/src/sap_module.c

@@ -713,13 +713,6 @@ QDF_STATUS wlansap_start_bss(struct sap_context *sap_ctx,
 		goto fail;
 	}
 	pmac = PMAC_STRUCT(hHal);
-	if (NULL == pmac) {
-		QDF_TRACE(QDF_MODULE_ID_SAP, QDF_TRACE_LEVEL_INFO_HIGH,
-			  "%s: Invalid MAC context from p_cds_gctx",
-			  __func__);
-		qdf_status = QDF_STATUS_E_FAULT;
-		goto fail;
-	}
 	/* If concurrent session is running that is already associated
 	 * then we just follow that sessions country info (whether
 	 * present or not doesn't maater as we have to follow whatever