mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-10 04:48:04 +09:00
staging: r8188eu: make rtw_chk_hi_queue_cmd a void function
Both callers of rtw_chk_hi_queue_cmd do not check the return value. Convert rtw_chk_hi_queue_cmd to a void function. Signed-off-by: Martin Kaiser <martin@kaiser.cx> Tested-by: Philipp Hortmann <philipp.g.hortmann@gmail.com> # Edimax N150 Link: https://lore.kernel.org/r/20230123205342.229589-14-martin@kaiser.cx Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
c00ed7dde8
commit
081c483510
@@ -1197,24 +1197,20 @@ static void rtw_chk_hi_queue_hdl(struct adapter *padapter)
|
||||
}
|
||||
}
|
||||
|
||||
u8 rtw_chk_hi_queue_cmd(struct adapter *padapter)
|
||||
void rtw_chk_hi_queue_cmd(struct adapter *padapter)
|
||||
{
|
||||
struct cmd_obj *ph2c;
|
||||
struct drvextra_cmd_parm *pdrvextra_cmd_parm;
|
||||
struct cmd_priv *pcmdpriv = &padapter->cmdpriv;
|
||||
u8 res = _SUCCESS;
|
||||
|
||||
ph2c = kzalloc(sizeof(*ph2c), GFP_ATOMIC);
|
||||
if (!ph2c) {
|
||||
res = _FAIL;
|
||||
goto exit;
|
||||
}
|
||||
if (!ph2c)
|
||||
return;
|
||||
|
||||
pdrvextra_cmd_parm = kzalloc(sizeof(*pdrvextra_cmd_parm), GFP_ATOMIC);
|
||||
if (!pdrvextra_cmd_parm) {
|
||||
kfree(ph2c);
|
||||
res = _FAIL;
|
||||
goto exit;
|
||||
return;
|
||||
}
|
||||
|
||||
pdrvextra_cmd_parm->ec_id = CHECK_HIQ_WK_CID;
|
||||
@@ -1223,9 +1219,7 @@ u8 rtw_chk_hi_queue_cmd(struct adapter *padapter)
|
||||
|
||||
init_h2fwcmd_w_parm_no_rsp(ph2c, pdrvextra_cmd_parm, GEN_CMD_CODE(_Set_Drv_Extra));
|
||||
|
||||
res = rtw_enqueue_cmd(pcmdpriv, ph2c);
|
||||
exit:
|
||||
return res;
|
||||
rtw_enqueue_cmd(pcmdpriv, ph2c);
|
||||
}
|
||||
|
||||
u8 rtw_c2h_wk_cmd(struct adapter *padapter, u8 *c2h_evt)
|
||||
|
||||
@@ -743,7 +743,7 @@ u8 rtw_rpt_timer_cfg_cmd(struct adapter *padapter, u16 minRptTime);
|
||||
u8 rtw_antenna_select_cmd(struct adapter *padapter, u8 antenna, u8 enqueue);
|
||||
u8 rtw_ps_cmd(struct adapter *padapter);
|
||||
|
||||
u8 rtw_chk_hi_queue_cmd(struct adapter *padapter);
|
||||
void rtw_chk_hi_queue_cmd(struct adapter *padapter);
|
||||
|
||||
u8 rtw_set_chplan_cmd(struct adapter *padapter, u8 chplan);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user