From: navin patidar Date: Thu, 10 Jul 2014 03:42:12 +0000 (+0530) Subject: staging: rtl8188eu: Remove command _Set_H2C_MSG and its handler X-Git-Tag: firefly_0821_release~176^2~3491^2~1048 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=563c8ad9247d975281a7d8bf182f578d2da1be86;p=firefly-linux-kernel-4.4.55.git staging: rtl8188eu: Remove command _Set_H2C_MSG and its handler _Set_H2C_MSG command is never issued by driver and its handler is a dummy function. Signed-off-by: navin patidar Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/rtl8188eu/core/rtw_mlme_ext.c b/drivers/staging/rtl8188eu/core/rtw_mlme_ext.c index e774a6fa71bb..41cfd30a1a7e 100644 --- a/drivers/staging/rtl8188eu/core/rtw_mlme_ext.c +++ b/drivers/staging/rtl8188eu/core/rtw_mlme_ext.c @@ -5493,14 +5493,6 @@ _abort_event_: return H2C_SUCCESS; } -u8 h2c_msg_hdl(struct adapter *padapter, unsigned char *pbuf) -{ - if (!pbuf) - return H2C_PARAMETERS_ERROR; - - return H2C_SUCCESS; -} - u8 tx_beacon_hdl(struct adapter *padapter, unsigned char *pbuf) { if (send_beacon(padapter) == _FAIL) { diff --git a/drivers/staging/rtl8188eu/include/rtw_cmd.h b/drivers/staging/rtl8188eu/include/rtw_cmd.h index f5e2c4580c2e..7dfbd8b9f75a 100644 --- a/drivers/staging/rtl8188eu/include/rtw_cmd.h +++ b/drivers/staging/rtl8188eu/include/rtw_cmd.h @@ -413,7 +413,6 @@ enum rtw_h2c_cmd { GEN_CMD_CODE(_TX_Beacon), GEN_CMD_CODE(_Set_MLME_EVT), GEN_CMD_CODE(_Set_Drv_Extra), - GEN_CMD_CODE(_Set_H2C_MSG), GEN_CMD_CODE(_SetChannelPlan), MAX_H2CCMD @@ -435,7 +434,6 @@ static struct _cmd_callback rtw_cmd_callback[] = { {GEN_CMD_CODE(_TX_Beacon), NULL}, {GEN_CMD_CODE(_Set_MLME_EVT), NULL}, {GEN_CMD_CODE(_Set_Drv_Extra), NULL}, - {GEN_CMD_CODE(_Set_H2C_MSG), NULL}, {GEN_CMD_CODE(_SetChannelPlan), NULL}, }; #endif diff --git a/drivers/staging/rtl8188eu/include/rtw_mlme_ext.h b/drivers/staging/rtl8188eu/include/rtw_mlme_ext.h index 7fa1c0569329..654bd365f969 100644 --- a/drivers/staging/rtl8188eu/include/rtw_mlme_ext.h +++ b/drivers/staging/rtl8188eu/include/rtw_mlme_ext.h @@ -722,7 +722,6 @@ static struct cmd_hdl wlancmds[] = { 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(0, h2c_msg_hdl) GEN_MLME_EXT_HANDLER(sizeof(struct SetChannelPlan_param), set_chplan_hdl) };