Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Nishka Dasgupta and committed by
Greg Kroah-Hartman
a2b6457e fc73bf67

+4 -5
+3 -4
drivers/staging/rtl8712/rtl871x_cmd.c
··· 935 935 r8712_free_cmd_obj(pcmd); 936 936 } 937 937 938 - u8 r8712_disconnectCtrlEx_cmd(struct _adapter *adapter, u32 enableDrvCtrl, 938 + void r8712_disconnectCtrlEx_cmd(struct _adapter *adapter, u32 enableDrvCtrl, 939 939 u32 tryPktCnt, u32 tryPktInterval, u32 firstStageTO) 940 940 { 941 941 struct cmd_obj *ph2c; ··· 944 944 945 945 ph2c = kmalloc(sizeof(*ph2c), GFP_ATOMIC); 946 946 if (!ph2c) 947 - return _FAIL; 947 + return; 948 948 param = kzalloc(sizeof(*param), GFP_ATOMIC); 949 949 if (!param) { 950 950 kfree(ph2c); 951 - return _FAIL; 951 + return; 952 952 } 953 953 954 954 param->EnableDrvCtrl = (unsigned char)enableDrvCtrl; ··· 959 959 init_h2fwcmd_w_parm_no_rsp(ph2c, param, 960 960 GEN_CMD_CODE(_DisconnectCtrlEx)); 961 961 r8712_enqueue_cmd(pcmdpriv, ph2c); 962 - return _SUCCESS; 963 962 }
+1 -1
drivers/staging/rtl8712/rtl871x_cmd.h
··· 747 747 struct cmd_obj *pcmd); 748 748 void r8712_setassocsta_cmdrsp_callback(struct _adapter *padapter, 749 749 struct cmd_obj *pcmd); 750 - u8 r8712_disconnectCtrlEx_cmd(struct _adapter *adapter, u32 enableDrvCtrl, 750 + void r8712_disconnectCtrlEx_cmd(struct _adapter *adapter, u32 enableDrvCtrl, 751 751 u32 tryPktCnt, u32 tryPktInterval, u32 firstStageTO); 752 752 753 753 struct _cmd_callback {