staging: rtl8712: r8712_disconnectCtrlEx_cmd(): Change return type
Change return type of function r8712_disconnectCtrlEx_cmd from u8 to void as its return value is never stored, checked or otherwise used. 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:
parent
fc73bf6712
commit
a2b6457e58
|
@ -935,7 +935,7 @@ void r8712_setassocsta_cmdrsp_callback(struct _adapter *padapter,
|
||||||
r8712_free_cmd_obj(pcmd);
|
r8712_free_cmd_obj(pcmd);
|
||||||
}
|
}
|
||||||
|
|
||||||
u8 r8712_disconnectCtrlEx_cmd(struct _adapter *adapter, u32 enableDrvCtrl,
|
void r8712_disconnectCtrlEx_cmd(struct _adapter *adapter, u32 enableDrvCtrl,
|
||||||
u32 tryPktCnt, u32 tryPktInterval, u32 firstStageTO)
|
u32 tryPktCnt, u32 tryPktInterval, u32 firstStageTO)
|
||||||
{
|
{
|
||||||
struct cmd_obj *ph2c;
|
struct cmd_obj *ph2c;
|
||||||
|
@ -944,11 +944,11 @@ u8 r8712_disconnectCtrlEx_cmd(struct _adapter *adapter, u32 enableDrvCtrl,
|
||||||
|
|
||||||
ph2c = kmalloc(sizeof(*ph2c), GFP_ATOMIC);
|
ph2c = kmalloc(sizeof(*ph2c), GFP_ATOMIC);
|
||||||
if (!ph2c)
|
if (!ph2c)
|
||||||
return _FAIL;
|
return;
|
||||||
param = kzalloc(sizeof(*param), GFP_ATOMIC);
|
param = kzalloc(sizeof(*param), GFP_ATOMIC);
|
||||||
if (!param) {
|
if (!param) {
|
||||||
kfree(ph2c);
|
kfree(ph2c);
|
||||||
return _FAIL;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
param->EnableDrvCtrl = (unsigned char)enableDrvCtrl;
|
param->EnableDrvCtrl = (unsigned char)enableDrvCtrl;
|
||||||
|
@ -959,5 +959,4 @@ u8 r8712_disconnectCtrlEx_cmd(struct _adapter *adapter, u32 enableDrvCtrl,
|
||||||
init_h2fwcmd_w_parm_no_rsp(ph2c, param,
|
init_h2fwcmd_w_parm_no_rsp(ph2c, param,
|
||||||
GEN_CMD_CODE(_DisconnectCtrlEx));
|
GEN_CMD_CODE(_DisconnectCtrlEx));
|
||||||
r8712_enqueue_cmd(pcmdpriv, ph2c);
|
r8712_enqueue_cmd(pcmdpriv, ph2c);
|
||||||
return _SUCCESS;
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -747,7 +747,7 @@ void r8712_setstaKey_cmdrsp_callback(struct _adapter *padapter,
|
||||||
struct cmd_obj *pcmd);
|
struct cmd_obj *pcmd);
|
||||||
void r8712_setassocsta_cmdrsp_callback(struct _adapter *padapter,
|
void r8712_setassocsta_cmdrsp_callback(struct _adapter *padapter,
|
||||||
struct cmd_obj *pcmd);
|
struct cmd_obj *pcmd);
|
||||||
u8 r8712_disconnectCtrlEx_cmd(struct _adapter *adapter, u32 enableDrvCtrl,
|
void r8712_disconnectCtrlEx_cmd(struct _adapter *adapter, u32 enableDrvCtrl,
|
||||||
u32 tryPktCnt, u32 tryPktInterval, u32 firstStageTO);
|
u32 tryPktCnt, u32 tryPktInterval, u32 firstStageTO);
|
||||||
|
|
||||||
struct _cmd_callback {
|
struct _cmd_callback {
|
||||||
|
|
Loading…
Reference in New Issue