From 5cdfcc879e0ec2b6978395e5838b9b3f10ec258f Mon Sep 17 00:00:00 2001 From: Saket Jha Date: Tue, 11 Jun 2019 18:13:59 -0700 Subject: [PATCH] qcacmn: Change return type to QDF_STATUS Changing return type of ce_send_single and hif_send_single functions to return QDF_STATUS instead of int so caller can handle as needed. Change-Id: Ifa0db300982e22c2784662492727923e4614c2b7 CRs-Fixed: 2468534 --- hif/inc/hif.h | 4 ++-- hif/src/ce/ce_api.h | 8 ++++---- hif/src/ce/ce_service.c | 4 ++-- hif/src/hif_main.c | 4 ++-- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/hif/inc/hif.h b/hif/inc/hif.h index ff9595f102..dd213837a0 100644 --- a/hif/inc/hif.h +++ b/hif/inc/hif.h @@ -1040,8 +1040,8 @@ void hif_init_ini_config(struct hif_opaque_softc *hif_ctx, void hif_update_tx_ring(struct hif_opaque_softc *osc, u_int32_t num_htt_cmpls); qdf_nbuf_t hif_batch_send(struct hif_opaque_softc *osc, qdf_nbuf_t msdu, uint32_t transfer_id, u_int32_t len, uint32_t sendhead); -int hif_send_single(struct hif_opaque_softc *osc, qdf_nbuf_t msdu, uint32_t - transfer_id, u_int32_t len); +QDF_STATUS hif_send_single(struct hif_opaque_softc *osc, qdf_nbuf_t msdu, + uint32_t transfer_id, u_int32_t len); int hif_send_fast(struct hif_opaque_softc *osc, qdf_nbuf_t nbuf, uint32_t transfer_id, uint32_t download_len); void hif_pkt_dl_len_set(void *hif_sc, unsigned int pkt_download_len); diff --git a/hif/src/ce/ce_api.h b/hif/src/ce/ce_api.h index 58f0ddc486..5ff48e0d16 100644 --- a/hif/src/ce/ce_api.h +++ b/hif/src/ce/ce_api.h @@ -170,10 +170,10 @@ extern qdf_nbuf_t ce_batch_send(struct CE_handle *ce_tx_hdl, uint32_t len, uint32_t sendhead); -extern int ce_send_single(struct CE_handle *ce_tx_hdl, - qdf_nbuf_t msdu, - uint32_t transfer_id, - uint32_t len); +QDF_STATUS ce_send_single(struct CE_handle *ce_tx_hdl, + qdf_nbuf_t msdu, + uint32_t transfer_id, + uint32_t len); /* * Register a Send Callback function. * This function is called as soon as the contents of a Send diff --git a/hif/src/ce/ce_service.c b/hif/src/ce/ce_service.c index 024d66c26c..ac9a3b202a 100644 --- a/hif/src/ce/ce_service.c +++ b/hif/src/ce/ce_service.c @@ -559,8 +559,8 @@ void ce_update_tx_ring(struct CE_handle *ce_tx_hdl, uint32_t num_htt_cmpls) * * Return: int: CE sent status */ -int ce_send_single(struct CE_handle *ce_tx_hdl, qdf_nbuf_t msdu, - uint32_t transfer_id, u_int32_t len) +QDF_STATUS ce_send_single(struct CE_handle *ce_tx_hdl, qdf_nbuf_t msdu, + uint32_t transfer_id, u_int32_t len) { struct CE_state *ce_state = (struct CE_state *)ce_tx_hdl; struct hif_softc *scn = ce_state->scn; diff --git a/hif/src/hif_main.c b/hif/src/hif_main.c index 0831f12991..69b2d379db 100644 --- a/hif/src/hif_main.c +++ b/hif/src/hif_main.c @@ -1192,8 +1192,8 @@ qdf_export_symbol(hif_update_tx_ring); * * Return: msdu sent status */ -int hif_send_single(struct hif_opaque_softc *osc, qdf_nbuf_t msdu, uint32_t - transfer_id, u_int32_t len) +QDF_STATUS hif_send_single(struct hif_opaque_softc *osc, qdf_nbuf_t msdu, + uint32_t transfer_id, u_int32_t len) { void *ce_tx_hdl = hif_get_ce_handle(osc, CE_HTT_TX_CE);