Commit 2f1539b2 authored by Nishka Dasgupta's avatar Nishka Dasgupta Committed by Greg Kroah-Hartman

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: default avatarNishka Dasgupta <nishkadg.linux@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 092a370d
...@@ -690,7 +690,7 @@ u8 r8712_setrttbl_cmd(struct _adapter *padapter, ...@@ -690,7 +690,7 @@ u8 r8712_setrttbl_cmd(struct _adapter *padapter,
return _SUCCESS; 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_priv *pcmdpriv = &padapter->cmdpriv;
struct cmd_obj *ph2c; struct cmd_obj *ph2c;
...@@ -698,17 +698,16 @@ u8 r8712_setMacAddr_cmd(struct _adapter *padapter, u8 *mac_addr) ...@@ -698,17 +698,16 @@ u8 r8712_setMacAddr_cmd(struct _adapter *padapter, u8 *mac_addr)
ph2c = kmalloc(sizeof(*ph2c), GFP_ATOMIC); ph2c = kmalloc(sizeof(*ph2c), GFP_ATOMIC);
if (!ph2c) if (!ph2c)
return _FAIL; return;
psetMacAddr_para = kmalloc(sizeof(*psetMacAddr_para), GFP_ATOMIC); psetMacAddr_para = kmalloc(sizeof(*psetMacAddr_para), GFP_ATOMIC);
if (!psetMacAddr_para) { if (!psetMacAddr_para) {
kfree(ph2c); kfree(ph2c);
return _FAIL; return;
} }
init_h2fwcmd_w_parm_no_rsp(ph2c, psetMacAddr_para, init_h2fwcmd_w_parm_no_rsp(ph2c, psetMacAddr_para,
_SetMacAddress_CMD_); _SetMacAddress_CMD_);
ether_addr_copy(psetMacAddr_para->MacAddr, mac_addr); ether_addr_copy(psetMacAddr_para->MacAddr, mac_addr);
r8712_enqueue_cmd(pcmdpriv, ph2c); r8712_enqueue_cmd(pcmdpriv, ph2c);
return _SUCCESS;
} }
u8 r8712_setassocsta_cmd(struct _adapter *padapter, u8 *mac_addr) u8 r8712_setassocsta_cmd(struct _adapter *padapter, u8 *mac_addr)
......
...@@ -708,7 +708,7 @@ struct DisconnectCtrlEx_param { ...@@ -708,7 +708,7 @@ struct DisconnectCtrlEx_param {
#define H2C_CMD_OVERFLOW 0x06 #define H2C_CMD_OVERFLOW 0x06
#define H2C_RESERVED 0x07 #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_setassocsta_cmd(struct _adapter *padapter, u8 *mac_addr);
u8 r8712_sitesurvey_cmd(struct _adapter *padapter, u8 r8712_sitesurvey_cmd(struct _adapter *padapter,
struct ndis_802_11_ssid *pssid); struct ndis_802_11_ssid *pssid);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment