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

staging: rtl8712: r8712_wdg_wk_cmd(): Change return type

Change return type of function r8712_wdg_wk_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
ec25a9c5 a2b6457e

+4 -5
+3 -4
drivers/staging/rtl8712/rtl871x_cmd.c
··· 759 759 r8712_enqueue_cmd_ex(pcmdpriv, ph2c); 760 760 } 761 761 762 - u8 r8712_wdg_wk_cmd(struct _adapter *padapter) 762 + void r8712_wdg_wk_cmd(struct _adapter *padapter) 763 763 { 764 764 struct cmd_obj *ph2c; 765 765 struct drvint_cmd_parm *pdrvintcmd_param; ··· 767 767 768 768 ph2c = kmalloc(sizeof(*ph2c), GFP_ATOMIC); 769 769 if (!ph2c) 770 - return _FAIL; 770 + return; 771 771 pdrvintcmd_param = kmalloc(sizeof(*pdrvintcmd_param), GFP_ATOMIC); 772 772 if (!pdrvintcmd_param) { 773 773 kfree(ph2c); 774 - return _FAIL; 774 + return; 775 775 } 776 776 pdrvintcmd_param->i_cid = WDG_WK_CID; 777 777 pdrvintcmd_param->sz = 0; 778 778 pdrvintcmd_param->pbuf = NULL; 779 779 init_h2fwcmd_w_parm_no_rsp(ph2c, pdrvintcmd_param, _DRV_INT_CMD_); 780 780 r8712_enqueue_cmd_ex(pcmdpriv, ph2c); 781 - return _SUCCESS; 782 781 } 783 782 784 783 void r8712_survey_cmd_callback(struct _adapter *padapter, struct cmd_obj *pcmd)
+1 -1
drivers/staging/rtl8712/rtl871x_cmd.h
··· 730 730 u8 r8712_setfwdig_cmd(struct _adapter *padapter, u8 type); 731 731 u8 r8712_setfwra_cmd(struct _adapter *padapter, u8 type); 732 732 void r8712_addbareq_cmd(struct _adapter *padapter, u8 tid); 733 - u8 r8712_wdg_wk_cmd(struct _adapter *padapter); 733 + void r8712_wdg_wk_cmd(struct _adapter *padapter); 734 734 void r8712_survey_cmd_callback(struct _adapter *padapter, 735 735 struct cmd_obj *pcmd); 736 736 void r8712_disassoc_cmd_callback(struct _adapter *padapter,