staging: r8188eu: three trivial cleanups
cover staging: r8188eu: three trivial cleanups
This set removes an unused struct and two unused variables.
Martin Kaiser (3):
staging: r8188eu: evt_allocated_buf is not used
staging: r8188eu: evt_done_cnt is set but not used
staging: r8188eu: struct usb_suspend_parm is not used
drivers/staging/r8188eu/core/rtw_cmd.c | 1 - drivers/staging/r8188eu/core/rtw_mlme_ext.c | 2 -- drivers/staging/r8188eu/include/rtw_cmd.h | 14 -------------- 3 files changed, 17 deletions(-)
Signature · 1 line
2.30.2
PATCH 1/3 staging: r8188eu: evt_allocated_buf is not used
evt_allocated_buf in struct evt_priv is not used. Remove it.
Signed-off-by Martin Kaiser <[email protected]>
--- drivers/staging/r8188eu/include/rtw_cmd.h | 1 - 1 file changed, 1 deletion(-)
drivers/staging/r8188eu/include/rtw_cmd.h +0 -1
@@ -55,7 +55,6 @@ struct evt_priv {#define C2H_QUEUE_MAX_LEN 10atomic_t event_seq;u8 *evt_buf;/* shall be non-paged, and 4 bytes aligned */ -u8 *evt_allocated_buf;u32 evt_done_cnt; };
Signature · 1 line
2.30.2
PATCH 2/3 staging: r8188eu: evt_done_cnt is set but not used
In reply to Martin Kaiserevt_done_cnt in struct evt_priv is set but not used. Remove it.
Signed-off-by Martin Kaiser <[email protected]>
--- drivers/staging/r8188eu/core/rtw_cmd.c | 1 - drivers/staging/r8188eu/core/rtw_mlme_ext.c | 2 -- drivers/staging/r8188eu/include/rtw_cmd.h | 1 - 3 files changed, 4 deletions(-)
drivers/staging/r8188eu/core/rtw_cmd.c +0 -1
@@ -65,7 +65,6 @@ static int _rtw_init_evt_priv(struct evt_priv *pevtpriv)/* allocate DMA-able/Non-Page memory for cmd_buf and rsp_buf */ atomic_set (&pevtpriv->event_seq,0 ); - pevtpriv->evt_done_cnt =0 ;INIT_WORK (&pevtpriv->c2h_wk, c2h_wk_callback); pevtpriv->c2h_wk_alive = false;
drivers/staging/r8188eu/core/rtw_mlme_ext.c +0 -2
@@ -7967,8 +7967,6 @@ u8 mlme_evt_hdl(struct adapter *padapter, unsigned char *pbuf)if (peventbuf) { event_callback = wlanevents[evt_code].event_callback;event_callback (padapter, (u8 *)peventbuf); - - pevt_priv->evt_done_cnt++; } _abort_event_:
drivers/staging/r8188eu/include/rtw_cmd.h +0 -1
@@ -55,7 +55,6 @@ struct evt_priv {#define C2H_QUEUE_MAX_LEN 10atomic_t event_seq;u8 *evt_buf;/* shall be non-paged, and 4 bytes aligned */ -u32 evt_done_cnt; };#define init_h2fwcmd_w_parm_no_rsp (pcmd, pparm, code) \
Signature · 1 line
2.30.2
PATCH 3/3 staging: r8188eu: struct usb_suspend_parm is not used
In reply to Martin Kaiserstruct usb_suspend_parm is not used. Remove it.
Signed-off-by Martin Kaiser <[email protected]>
--- drivers/staging/r8188eu/include/rtw_cmd.h | 12 ------------ 1 file changed, 12 deletions(-)
drivers/staging/r8188eu/include/rtw_cmd.h +0 -12
@@ -122,18 +122,6 @@ enum RFINTFS { HWPI, }; -/* -Caller Mode: Infra, Ad-HoC(C) - -Notes: To enter USB suspend mode - -Command Mode - -*/ -struct usb_suspend_parm { -u32 action;/* 1: sleep, 0:resume */ -}; -/* Caller Mode: Infra, Ad-HoC
Signature · 1 line
2.30.2