mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 16:46:15 -04:00
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
This commit is contained in:
parent
eb849af214
commit
7819caa75b
1 changed files with 4 additions and 4 deletions
|
|
@ -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__);
|
||||
|
|
|
|||
Loading…
Reference in a new issue