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

staging: rtl8712: r8712_disassoc_cmd(): Change type to void

Change return type of function r8712_disassoc_cmd from u8 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 ee71f8e8
...@@ -564,7 +564,7 @@ int r8712_joinbss_cmd(struct _adapter *padapter, struct wlan_network *pnetwork) ...@@ -564,7 +564,7 @@ int r8712_joinbss_cmd(struct _adapter *padapter, struct wlan_network *pnetwork)
return 0; return 0;
} }
u8 r8712_disassoc_cmd(struct _adapter *padapter) /* for sta_mode */ void r8712_disassoc_cmd(struct _adapter *padapter) /* for sta_mode */
{ {
struct cmd_obj *pdisconnect_cmd; struct cmd_obj *pdisconnect_cmd;
struct disconnect_parm *pdisconnect; struct disconnect_parm *pdisconnect;
...@@ -572,16 +572,15 @@ u8 r8712_disassoc_cmd(struct _adapter *padapter) /* for sta_mode */ ...@@ -572,16 +572,15 @@ u8 r8712_disassoc_cmd(struct _adapter *padapter) /* for sta_mode */
pdisconnect_cmd = kmalloc(sizeof(*pdisconnect_cmd), GFP_ATOMIC); pdisconnect_cmd = kmalloc(sizeof(*pdisconnect_cmd), GFP_ATOMIC);
if (!pdisconnect_cmd) if (!pdisconnect_cmd)
return _FAIL; return;
pdisconnect = kmalloc(sizeof(*pdisconnect), GFP_ATOMIC); pdisconnect = kmalloc(sizeof(*pdisconnect), GFP_ATOMIC);
if (!pdisconnect) { if (!pdisconnect) {
kfree(pdisconnect_cmd); kfree(pdisconnect_cmd);
return _FAIL; return;
} }
init_h2fwcmd_w_parm_no_rsp(pdisconnect_cmd, pdisconnect, init_h2fwcmd_w_parm_no_rsp(pdisconnect_cmd, pdisconnect,
_DisConnect_CMD_); _DisConnect_CMD_);
r8712_enqueue_cmd(pcmdpriv, pdisconnect_cmd); r8712_enqueue_cmd(pcmdpriv, pdisconnect_cmd);
return _SUCCESS;
} }
u8 r8712_setopmode_cmd(struct _adapter *padapter, u8 r8712_setopmode_cmd(struct _adapter *padapter,
......
...@@ -716,7 +716,7 @@ int r8712_createbss_cmd(struct _adapter *padapter); ...@@ -716,7 +716,7 @@ int r8712_createbss_cmd(struct _adapter *padapter);
u8 r8712_setstakey_cmd(struct _adapter *padapter, u8 *psta, u8 unicast_key); u8 r8712_setstakey_cmd(struct _adapter *padapter, u8 *psta, u8 unicast_key);
int r8712_joinbss_cmd(struct _adapter *padapter, int r8712_joinbss_cmd(struct _adapter *padapter,
struct wlan_network *pnetwork); struct wlan_network *pnetwork);
u8 r8712_disassoc_cmd(struct _adapter *padapter); void r8712_disassoc_cmd(struct _adapter *padapter);
u8 r8712_setopmode_cmd(struct _adapter *padapter, u8 r8712_setopmode_cmd(struct _adapter *padapter,
enum NDIS_802_11_NETWORK_INFRASTRUCTURE networktype); enum NDIS_802_11_NETWORK_INFRASTRUCTURE networktype);
int r8712_setdatarate_cmd(struct _adapter *padapter, u8 *rateset); int r8712_setdatarate_cmd(struct _adapter *padapter, u8 *rateset);
......
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