From 5676b738b978e35817bf1b8faf82f099d15a76b5 Mon Sep 17 00:00:00 2001 From: Jeff Johnson Date: Mon, 28 Aug 2017 11:50:54 -0700 Subject: [PATCH] qcacld-3.0: Replace hdd_context_t in wlan_hdd_napi.c 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: If336b3f168d6e4b5cd1925030cd65e171f8100b3 CRs-Fixed: 2100148 --- core/hdd/src/wlan_hdd_napi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/hdd/src/wlan_hdd_napi.c b/core/hdd/src/wlan_hdd_napi.c index 705c8bbc91..2aa0fe9106 100644 --- a/core/hdd/src/wlan_hdd_napi.c +++ b/core/hdd/src/wlan_hdd_napi.c @@ -105,7 +105,7 @@ int hdd_napi_create(void) { struct hif_opaque_softc *hif_ctx; int rc = 0; - hdd_context_t *hdd_ctx; + struct hdd_context *hdd_ctx; uint8_t feature_flags = 0; NAPI_DEBUG("-->"); @@ -345,7 +345,7 @@ int hdd_napi_apply_throughput_policy(struct hdd_context *hddctx, int hdd_napi_serialize(int is_on) { int rc; - hdd_context_t *hdd_ctx; + struct hdd_context *hdd_ctx; #define POLICY_DELAY_FACTOR (1) rc = hif_napi_serialize(cds_get_context(QDF_MODULE_ID_HIF), is_on); if ((rc == 0) && (is_on == 0)) {