Browse Source

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
Jeff Johnson 7 years ago
parent
commit
0960ae344a
1 changed files with 2 additions and 2 deletions
  1. 2 2
      utils/logging/src/wlan_logging_sock_svc.c

+ 2 - 2
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;