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

staging: rtl8188eu: goto replaced by 'else' branch

goto is not needed here.

Signed-off-by: Ivan Safonov <insafonov@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Ivan Safonov and committed by
Greg Kroah-Hartman
4a3bda22 d14c07f6

+12 -15
+12 -15
drivers/staging/rtl8188eu/core/rtw_cmd.c
··· 201 201 202 202 if (rtw_cmd_filter(pcmdpriv, pcmd) == _FAIL) { 203 203 pcmd->res = H2C_DROPPED; 204 - goto post_process; 205 - } 206 - 207 - if (pcmd->cmdcode < ARRAY_SIZE(wlancmds)) { 208 - cmd_hdl = wlancmds[pcmd->cmdcode].h2cfuns; 209 - 210 - if (cmd_hdl) { 211 - ret = cmd_hdl(pcmd->padapter, pcmd->parmbuf); 212 - pcmd->res = ret; 213 - } 214 204 } else { 215 - pcmd->res = H2C_PARAMETERS_ERROR; 205 + if (pcmd->cmdcode < ARRAY_SIZE(wlancmds)) { 206 + cmd_hdl = wlancmds[pcmd->cmdcode].h2cfuns; 207 + 208 + if (cmd_hdl) { 209 + ret = cmd_hdl(pcmd->padapter, pcmd->parmbuf); 210 + pcmd->res = ret; 211 + } 212 + } else { 213 + pcmd->res = H2C_PARAMETERS_ERROR; 214 + } 215 + 216 + cmd_hdl = NULL; 216 217 } 217 - 218 - cmd_hdl = NULL; 219 - 220 - post_process: 221 218 222 219 /* call callback function for post-processed */ 223 220 if (pcmd->cmdcode < ARRAY_SIZE(rtw_cmd_callback)) {