From 598f503a01358bacc8308b9130318173a3047ebc Mon Sep 17 00:00:00 2001 From: Venkata Sharath Chandra Manchala Date: Wed, 5 Sep 2018 18:55:43 -0700 Subject: [PATCH] qcacld-3.0: Change return status Return QDF_STATUS as return status over an integer value. Change-Id: Ib6083de9b3581e6d92ec18f39ca552a5ae0cfc2d CRs-Fixed: 2311561 --- core/cds/src/cds_api.c | 6 +++--- core/dp/txrx/ol_txrx.c | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/core/cds/src/cds_api.c b/core/cds/src/cds_api.c index ec814f9f7c84..6f35b4698230 100644 --- a/core/cds/src/cds_api.c +++ b/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; } diff --git a/core/dp/txrx/ol_txrx.c b/core/dp/txrx/ol_txrx.c index b89257c23431..7c2993a83e4b 100644 --- a/core/dp/txrx/ol_txrx.c +++ b/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; } /**