From a56e968a358b6917a3f16ebd7c7b12f4bb2509e4 Mon Sep 17 00:00:00 2001 From: Jeff Johnson Date: Tue, 29 Aug 2017 14:29:31 -0700 Subject: [PATCH] qcacld-3.0: Replace hdd_adapter_t in wlan_hdd_lro.[ch] 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_adapter_t typedef does not meet any of those criteria, so replace references to it with a reference to the underlying struct. Change-Id: Iec3c0b0b2e59ac05ad352f5b4e6e2b4528a8b5be CRs-Fixed: 2101051 --- core/hdd/inc/wlan_hdd_lro.h | 4 ++-- core/hdd/src/wlan_hdd_lro.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/core/hdd/inc/wlan_hdd_lro.h b/core/hdd/inc/wlan_hdd_lro.h index e5b512f333ef..244909662d54 100644 --- a/core/hdd/inc/wlan_hdd_lro.h +++ b/core/hdd/inc/wlan_hdd_lro.h @@ -48,7 +48,7 @@ enum hdd_lro_rx_status { int hdd_lro_init(struct hdd_context *hdd_ctx); enum hdd_lro_rx_status hdd_lro_rx(struct hdd_context *hdd_ctx, - hdd_adapter_t *adapter, struct sk_buff *skb); + struct hdd_adapter *adapter, struct sk_buff *skb); void hdd_lro_display_stats(struct hdd_context *hdd_ctx); #else static inline int hdd_lro_init(struct hdd_context *hdd_ctx) @@ -57,7 +57,7 @@ static inline int hdd_lro_init(struct hdd_context *hdd_ctx) } static inline enum hdd_lro_rx_status hdd_lro_rx(struct hdd_context *hdd_ctx, - hdd_adapter_t *adapter, struct sk_buff *skb) + struct hdd_adapter *adapter, struct sk_buff *skb) { return HDD_LRO_NO_RX; } diff --git a/core/hdd/src/wlan_hdd_lro.c b/core/hdd/src/wlan_hdd_lro.c index 9050f9538138..23702c37d883 100644 --- a/core/hdd/src/wlan_hdd_lro.c +++ b/core/hdd/src/wlan_hdd_lro.c @@ -136,7 +136,7 @@ static qdf_lro_ctx_t wlan_hdd_get_lro_ctx(struct sk_buff *skb) * HDD_LRO_NO_RX - frame not delivered */ enum hdd_lro_rx_status hdd_lro_rx(struct hdd_context *hdd_ctx, - hdd_adapter_t *adapter, struct sk_buff *skb) + struct hdd_adapter *adapter, struct sk_buff *skb) { qdf_lro_ctx_t ctx; enum hdd_lro_rx_status status = HDD_LRO_NO_RX;