Parcourir la source

qcacld-3.0: Change return status

Return QDF_STATUS as return status
over an integer value.

Change-Id: Ib6083de9b3581e6d92ec18f39ca552a5ae0cfc2d
CRs-Fixed: 2311561
Venkata Sharath Chandra Manchala il y a 6 ans
Parent
commit
598f503a01
2 fichiers modifiés avec 5 ajouts et 5 suppressions
  1. 3 3
      core/cds/src/cds_api.c
  2. 2 2
      core/dp/txrx/ol_txrx.c

+ 3 - 3
core/cds/src/cds_api.c

@@ -897,9 +897,9 @@ QDF_STATUS cds_enable(struct wlan_objmgr_psoc *psoc)
 		goto err_mac_stop;
 	}
 
-	errno = cdp_soc_attach_target(cds_get_context(QDF_MODULE_ID_SOC));
-	if (errno) {
-		cds_err("Failed to attach soc target; errno:%d", errno);
+	qdf_status = cdp_soc_attach_target(cds_get_context(QDF_MODULE_ID_SOC));
+	if (!QDF_IS_STATUS_SUCCESS(qdf_status)) {
+		cds_err("Failed to attach soc target; status:%d", qdf_status);
 		goto err_sme_stop;
 	}
 

+ 2 - 2
core/dp/txrx/ol_txrx.c

@@ -5112,10 +5112,10 @@ static uint16_t ol_txrx_get_vdev_id(struct cdp_vdev *pvdev)
  *
  * Return: 0
  */
-static int ol_txrx_soc_attach_target(ol_txrx_soc_handle soc)
+static QDF_STATUS ol_txrx_soc_attach_target(ol_txrx_soc_handle soc)
 {
 	/* MCL legacy OL do nothing here */
-	return 0;
+	return QDF_STATUS_SUCCESS;
 }
 
 /**