From 7819caa75bc778ee065974856111d844c64d8a0e Mon Sep 17 00:00:00 2001 From: Jeff Johnson Date: Mon, 28 Aug 2017 10:06:53 -0700 Subject: [PATCH] qcacld-3.0: Replace hdd_context_t in cds_api The Linux Coding Style enumerates a few special cases where typedefs are useful, but stresses "NEVER EVER use a typedef unless you can clearly match one of those rules." The hdd_context_t typedef does not meet any of those criteria, so replace references to it with a reference to the underlying struct. Change-Id: I8404fa2fc32269a92522f6ae15f8d9d1a8aebf85 CRs-Fixed: 2100140 --- core/cds/src/cds_api.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/cds/src/cds_api.c b/core/cds/src/cds_api.c index cbbc255c8bff..315789855658 100644 --- a/core/cds/src/cds_api.c +++ b/core/cds/src/cds_api.c @@ -386,7 +386,7 @@ QDF_STATUS cds_open(struct wlan_objmgr_psoc *psoc) struct ol_context *ol_ctx; struct hif_opaque_softc *scn; void *HTCHandle; - hdd_context_t *pHddCtx; + struct hdd_context *pHddCtx; cds_context_type *cds_ctx; QDF_TRACE(QDF_MODULE_ID_QDF, QDF_TRACE_LEVEL_INFO_HIGH, @@ -421,7 +421,7 @@ QDF_STATUS cds_open(struct wlan_objmgr_psoc *psoc) goto err_probe_event; } - pHddCtx = (hdd_context_t *) (gp_cds_context->pHDDContext); + pHddCtx = (struct hdd_context *) (gp_cds_context->pHDDContext); if ((NULL == pHddCtx) || (NULL == pHddCtx->config)) { /* Critical Error ... Cannot proceed further */ cds_err("Hdd Context is Null"); @@ -1701,9 +1701,9 @@ void cds_flush_delayed_work(void *dwork) */ bool cds_is_packet_log_enabled(void) { - hdd_context_t *pHddCtx; + struct hdd_context *pHddCtx; - pHddCtx = (hdd_context_t *) (gp_cds_context->pHDDContext); + pHddCtx = (struct hdd_context *) (gp_cds_context->pHDDContext); if ((NULL == pHddCtx) || (NULL == pHddCtx->config)) { QDF_TRACE(QDF_MODULE_ID_QDF, QDF_TRACE_LEVEL_FATAL, "%s: Hdd Context is Null", __func__);