From c945f5660aa2b884f38db04429a99875da672476 Mon Sep 17 00:00:00 2001 From: Jeff Johnson Date: Fri, 29 Sep 2017 16:15:58 -0700 Subject: [PATCH] qcacld-3.0: Replace typedef action_pkt_buffer_t 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 action_pkt_buffer_t typedef does not meet any of those criteria, so replace references to it with a reference to the underlying struct. Change-Id: Icdcc07459223aa1b9c91601aa25ac9c314608da8 CRs-Fixed: 2119303 --- core/hdd/inc/wlan_hdd_main.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/hdd/inc/wlan_hdd_main.h b/core/hdd/inc/wlan_hdd_main.h index 7c88ed193c19..a3fd7a5a08ba 100644 --- a/core/hdd/inc/wlan_hdd_main.h +++ b/core/hdd/inc/wlan_hdd_main.h @@ -567,11 +567,11 @@ enum rem_on_channel_request_type { OFF_CHANNEL_ACTION_TX, }; -typedef struct action_pkt_buffer { +struct action_pkt_buffer { uint8_t *frame_ptr; uint32_t frame_length; uint16_t freq; -} action_pkt_buffer_t; +}; typedef struct hdd_remain_on_chan_ctx { struct net_device *dev; @@ -581,7 +581,7 @@ typedef struct hdd_remain_on_chan_ctx { u64 cookie; enum rem_on_channel_request_type rem_on_chan_request; qdf_mc_timer_t hdd_remain_on_chan_timer; - action_pkt_buffer_t action_pkt_buff; + struct action_pkt_buffer action_pkt_buff; bool hdd_remain_on_chan_cancel_in_progress; uint32_t scan_id; } hdd_remain_on_chan_ctx_t;