Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1494152

[PATCH 8/8] staging:r8188eu: remove GEN_MLME_EXT_HANDLER macro

From Ivan Safonov <insafonov@gmail.com>
Newsgroups linux.kernel
Subject [PATCH 8/8] staging:r8188eu: remove GEN_MLME_EXT_HANDLER macro
Date 2016-09-30 16:40 +0200
Message-ID <sn78K-2XU-27@gated-at.bofh.it> (permalink)
References <sn78J-2XU-11@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


GEN_MLME_EXT_HANDLER is redundant macro.

Signed-off-by: Ivan Safonov <insafonov@gmail.com>
---
 drivers/staging/rtl8188eu/include/rtw_mlme_ext.h | 32 +++++++++++-------------
 1 file changed, 15 insertions(+), 17 deletions(-)

diff --git a/drivers/staging/rtl8188eu/include/rtw_mlme_ext.h b/drivers/staging/rtl8188eu/include/rtw_mlme_ext.h
index 872a531..1b1caaf 100644
--- a/drivers/staging/rtl8188eu/include/rtw_mlme_ext.h
+++ b/drivers/staging/rtl8188eu/include/rtw_mlme_ext.h
@@ -625,26 +625,24 @@ u8 led_blink_hdl(struct adapter *padapter, unsigned char *pbuf);
 u8 set_csa_hdl(struct adapter *padapter, unsigned char *pbuf);
 u8 tdls_hdl(struct adapter *padapter, unsigned char *pbuf);
 
-#define GEN_MLME_EXT_HANDLER(size, cmd)	{size, cmd},
-
 #ifdef _RTW_CMD_C_
 
 static struct cmd_hdl wlancmds[] = {
-	GEN_MLME_EXT_HANDLER(sizeof(struct wlan_bssid_ex), join_cmd_hdl)
-	GEN_MLME_EXT_HANDLER(sizeof(struct disconnect_parm), disconnect_hdl)
-	GEN_MLME_EXT_HANDLER(sizeof(struct wlan_bssid_ex), createbss_hdl)
-	GEN_MLME_EXT_HANDLER(sizeof(struct setopmode_parm), setopmode_hdl)
-	GEN_MLME_EXT_HANDLER(sizeof(struct sitesurvey_parm), sitesurvey_cmd_hdl)
-	GEN_MLME_EXT_HANDLER(sizeof(struct setauth_parm), setauth_hdl)
-	GEN_MLME_EXT_HANDLER(sizeof(struct setkey_parm), setkey_hdl)
-	GEN_MLME_EXT_HANDLER(sizeof(struct set_stakey_parm), set_stakey_hdl)
-	GEN_MLME_EXT_HANDLER(sizeof(struct set_assocsta_parm), NULL)
-	GEN_MLME_EXT_HANDLER(sizeof(struct addBaReq_parm), add_ba_hdl)
-	GEN_MLME_EXT_HANDLER(sizeof(struct set_ch_parm), set_ch_hdl)
-	GEN_MLME_EXT_HANDLER(sizeof(struct wlan_bssid_ex), tx_beacon_hdl)
-	GEN_MLME_EXT_HANDLER(0, mlme_evt_hdl)
-	GEN_MLME_EXT_HANDLER(0, rtw_drvextra_cmd_hdl)
-	GEN_MLME_EXT_HANDLER(sizeof(struct SetChannelPlan_param), set_chplan_hdl)
+	{sizeof(struct wlan_bssid_ex), join_cmd_hdl},
+	{sizeof(struct disconnect_parm), disconnect_hdl},
+	{sizeof(struct wlan_bssid_ex), createbss_hdl},
+	{sizeof(struct setopmode_parm), setopmode_hdl},
+	{sizeof(struct sitesurvey_parm), sitesurvey_cmd_hdl},
+	{sizeof(struct setauth_parm), setauth_hdl},
+	{sizeof(struct setkey_parm), setkey_hdl},
+	{sizeof(struct set_stakey_parm), set_stakey_hdl},
+	{sizeof(struct set_assocsta_parm), NULL},
+	{sizeof(struct addBaReq_parm), add_ba_hdl},
+	{sizeof(struct set_ch_parm), set_ch_hdl},
+	{sizeof(struct wlan_bssid_ex), tx_beacon_hdl},
+	{0, mlme_evt_hdl},
+	{0, rtw_drvextra_cmd_hdl},
+	{sizeof(struct SetChannelPlan_param), set_chplan_hdl}
 };
 
 #endif
-- 
2.7.3

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 1/8] staging:r8188eu: change rtl8188e_process_phy_info function argument type Ivan Safonov <insafonov@gmail.com> - 2016-09-30 16:40 +0200
  [PATCH 4/8] staging:r8188eu: remove pkt_newalloc member of the recv_buf structure Ivan Safonov <insafonov@gmail.com> - 2016-09-30 16:40 +0200
  [PATCH 3/8] staging:r8188eu: remove rtw_handle_dualmac declaration Ivan Safonov <insafonov@gmail.com> - 2016-09-30 16:40 +0200
  [PATCH 2/8] staging:r8188eu: remove (RGTRY|BSSID)_(OFT|SZ) macros Ivan Safonov <insafonov@gmail.com> - 2016-09-30 16:40 +0200
  [PATCH 5/8] staging:r8188eu: remove GEN_CMD_CODE macro Ivan Safonov <insafonov@gmail.com> - 2016-09-30 16:40 +0200
  [PATCH 6/8] staging:r8188eu: remove GEN_EVT_CODE macro Ivan Safonov <insafonov@gmail.com> - 2016-09-30 16:40 +0200
  [PATCH 8/8] staging:r8188eu: remove GEN_MLME_EXT_HANDLER macro Ivan Safonov <insafonov@gmail.com> - 2016-09-30 16:40 +0200
  [PATCH 7/8] staging:r8188eu: remove GEN_DRV_CMD_HANDLER macro Ivan Safonov <insafonov@gmail.com> - 2016-09-30 16:40 +0200

csiph-web