qcacld-3.0: Add check for return value

Currently in cds_enable, no check is performed against the return
value of dispatcher_psoc_enable. Add it accordingly.

Change-Id: Ie8119b5581fb13723dd5cd3c7e22477df51005f4
CRs-Fixed: 2168212
This commit is contained in:
Min Liu 2018-01-08 14:21:02 +08:00 • committed by snandini
commit 81f2ed3f2f

View file

@ -953,7 +953,12 @@ QDF_STATUS cds_enable(struct wlan_objmgr_psoc *psoc)
QDF_TRACE(QDF_MODULE_ID_QDF, QDF_TRACE_LEVEL_INFO,
"%s: CDS Start is successful!!", __func__);
dispatcher_psoc_enable(psoc);
qdf_status = dispatcher_psoc_enable(psoc);
if (!QDF_IS_STATUS_SUCCESS(qdf_status)) {
QDF_TRACE(QDF_MODULE_ID_QDF, QDF_TRACE_LEVEL_FATAL,
"%s: dispatcher_psoc_enable failed", __func__);
goto err_soc_target_detach;
}
/* Trigger psoc enable for CLD components */
hdd_component_psoc_enable(psoc);