From 0960ae344a8b7033b02b08526b988e131e538354 Mon Sep 17 00:00:00 2001 From: Jeff Johnson Date: Tue, 29 Aug 2017 07:04:28 -0700 Subject: [PATCH] qcacmn: Replace hdd_context_t in wlan_logging_sock_svc 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: I3dfe59ac92a374639faa6774a6538c5d970d3f1d CRs-Fixed: 2100797 --- utils/logging/src/wlan_logging_sock_svc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/logging/src/wlan_logging_sock_svc.c b/utils/logging/src/wlan_logging_sock_svc.c index 9a44a19c55e6..d6a8487174de 100644 --- a/utils/logging/src/wlan_logging_sock_svc.c +++ b/utils/logging/src/wlan_logging_sock_svc.c @@ -1235,7 +1235,7 @@ static void send_packetdump(qdf_nbuf_t netbuf, uint8_t status, { struct ath_pktlog_hdr pktlog_hdr = {0}; struct packet_dump pd_hdr = {0}; - hdd_context_t *hdd_ctx; + struct hdd_context *hdd_ctx; hdd_adapter_t *adapter; v_CONTEXT_t vos_ctx; @@ -1243,7 +1243,7 @@ static void send_packetdump(qdf_nbuf_t netbuf, uint8_t status, if (!vos_ctx) return; - hdd_ctx = (hdd_context_t *)cds_get_context(QDF_MODULE_ID_HDD); + hdd_ctx = (struct hdd_context *)cds_get_context(QDF_MODULE_ID_HDD); if (!hdd_ctx) return;