staging: rtl8712: r8712_addbareq_cmd(): Change return type

Change return type of the function r8712_addbareq_cmd from u8 to void as
its return value is not stored, checked or otherwise used. Also modify
its return statements accordingly.

Signed-off-by: Nishka Dasgupta <nishkadg.linux@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Nishka Dasgupta 2019-06-21 11:38:07 +05:30 committed by Greg Kroah-Hartman
parent 3e5bc68fa5
commit fc73bf6712
2 changed files with 4 additions and 5 deletions

View File

@ -739,7 +739,7 @@ u8 r8712_setassocsta_cmd(struct _adapter *padapter, u8 *mac_addr)
return _SUCCESS; return _SUCCESS;
} }
u8 r8712_addbareq_cmd(struct _adapter *padapter, u8 tid) void r8712_addbareq_cmd(struct _adapter *padapter, u8 tid)
{ {
struct cmd_priv *pcmdpriv = &padapter->cmdpriv; struct cmd_priv *pcmdpriv = &padapter->cmdpriv;
struct cmd_obj *ph2c; struct cmd_obj *ph2c;
@ -747,17 +747,16 @@ u8 r8712_addbareq_cmd(struct _adapter *padapter, u8 tid)
ph2c = kmalloc(sizeof(*ph2c), GFP_ATOMIC); ph2c = kmalloc(sizeof(*ph2c), GFP_ATOMIC);
if (!ph2c) if (!ph2c)
return _FAIL; return;
paddbareq_parm = kmalloc(sizeof(*paddbareq_parm), GFP_ATOMIC); paddbareq_parm = kmalloc(sizeof(*paddbareq_parm), GFP_ATOMIC);
if (!paddbareq_parm) { if (!paddbareq_parm) {
kfree(ph2c); kfree(ph2c);
return _FAIL; return;
} }
paddbareq_parm->tid = tid; paddbareq_parm->tid = tid;
init_h2fwcmd_w_parm_no_rsp(ph2c, paddbareq_parm, init_h2fwcmd_w_parm_no_rsp(ph2c, paddbareq_parm,
GEN_CMD_CODE(_AddBAReq)); GEN_CMD_CODE(_AddBAReq));
r8712_enqueue_cmd_ex(pcmdpriv, ph2c); r8712_enqueue_cmd_ex(pcmdpriv, ph2c);
return _SUCCESS;
} }
u8 r8712_wdg_wk_cmd(struct _adapter *padapter) u8 r8712_wdg_wk_cmd(struct _adapter *padapter)

View File

@ -729,7 +729,7 @@ u8 r8712_setrttbl_cmd(struct _adapter *padapter,
struct setratable_parm *prate_table); struct setratable_parm *prate_table);
u8 r8712_setfwdig_cmd(struct _adapter *padapter, u8 type); u8 r8712_setfwdig_cmd(struct _adapter *padapter, u8 type);
u8 r8712_setfwra_cmd(struct _adapter *padapter, u8 type); u8 r8712_setfwra_cmd(struct _adapter *padapter, u8 type);
u8 r8712_addbareq_cmd(struct _adapter *padapter, u8 tid); void r8712_addbareq_cmd(struct _adapter *padapter, u8 tid);
u8 r8712_wdg_wk_cmd(struct _adapter *padapter); u8 r8712_wdg_wk_cmd(struct _adapter *padapter);
void r8712_survey_cmd_callback(struct _adapter *padapter, void r8712_survey_cmd_callback(struct _adapter *padapter,
struct cmd_obj *pcmd); struct cmd_obj *pcmd);