Răsfoiți Sursa

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
Jeff Johnson 7 ani în urmă
părinte
comite
c945f5660a
1 a modificat fișierele cu 3 adăugiri și 3 ștergeri
  1. 3 3
      core/hdd/inc/wlan_hdd_main.h

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