mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-05 20:33:49 -04:00
staging: rtl8712: r8712_setMacAddr_cmd(): Change return type
Change return type of function r8712_setMacAddr_cmd() 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:
committed by
Greg Kroah-Hartman
parent
092a370dbf
commit
2f1539b24e
@@ -690,7 +690,7 @@ u8 r8712_setrttbl_cmd(struct _adapter *padapter,
|
||||
return _SUCCESS;
|
||||
}
|
||||
|
||||
u8 r8712_setMacAddr_cmd(struct _adapter *padapter, u8 *mac_addr)
|
||||
void r8712_setMacAddr_cmd(struct _adapter *padapter, u8 *mac_addr)
|
||||
{
|
||||
struct cmd_priv *pcmdpriv = &padapter->cmdpriv;
|
||||
struct cmd_obj *ph2c;
|
||||
@@ -698,17 +698,16 @@ u8 r8712_setMacAddr_cmd(struct _adapter *padapter, u8 *mac_addr)
|
||||
|
||||
ph2c = kmalloc(sizeof(*ph2c), GFP_ATOMIC);
|
||||
if (!ph2c)
|
||||
return _FAIL;
|
||||
return;
|
||||
psetMacAddr_para = kmalloc(sizeof(*psetMacAddr_para), GFP_ATOMIC);
|
||||
if (!psetMacAddr_para) {
|
||||
kfree(ph2c);
|
||||
return _FAIL;
|
||||
return;
|
||||
}
|
||||
init_h2fwcmd_w_parm_no_rsp(ph2c, psetMacAddr_para,
|
||||
_SetMacAddress_CMD_);
|
||||
ether_addr_copy(psetMacAddr_para->MacAddr, mac_addr);
|
||||
r8712_enqueue_cmd(pcmdpriv, ph2c);
|
||||
return _SUCCESS;
|
||||
}
|
||||
|
||||
u8 r8712_setassocsta_cmd(struct _adapter *padapter, u8 *mac_addr)
|
||||
|
||||
@@ -708,7 +708,7 @@ struct DisconnectCtrlEx_param {
|
||||
#define H2C_CMD_OVERFLOW 0x06
|
||||
#define H2C_RESERVED 0x07
|
||||
|
||||
u8 r8712_setMacAddr_cmd(struct _adapter *padapter, u8 *mac_addr);
|
||||
void r8712_setMacAddr_cmd(struct _adapter *padapter, u8 *mac_addr);
|
||||
u8 r8712_setassocsta_cmd(struct _adapter *padapter, u8 *mac_addr);
|
||||
u8 r8712_sitesurvey_cmd(struct _adapter *padapter,
|
||||
struct ndis_802_11_ssid *pssid);
|
||||
|
||||
Reference in New Issue
Block a user