staging: rtl8188eu: goto replaced by 'else' branch
authorIvan Safonov <insafonov@gmail.com>
Fri, 6 Nov 2015 15:17:29 +0000 (22:17 +0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 16 Nov 2015 04:02:47 +0000 (20:02 -0800)
goto is not needed here.

Signed-off-by: Ivan Safonov <insafonov@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/core/rtw_cmd.c

index f0ac66de34d67c08a00bf2e5b8875eedce9aa5a6..f90a2bfbb8199495209e55a6d66b7a234d831e4d 100644 (file)
@@ -201,23 +201,20 @@ _next:
 
                if (rtw_cmd_filter(pcmdpriv, pcmd) == _FAIL) {
                        pcmd->res = H2C_DROPPED;
-                       goto post_process;
-               }
-
-               if (pcmd->cmdcode < ARRAY_SIZE(wlancmds)) {
-                       cmd_hdl = wlancmds[pcmd->cmdcode].h2cfuns;
-
-                       if (cmd_hdl) {
-                               ret = cmd_hdl(pcmd->padapter, pcmd->parmbuf);
-                               pcmd->res = ret;
-                       }
                } else {
-                       pcmd->res = H2C_PARAMETERS_ERROR;
-               }
+                       if (pcmd->cmdcode < ARRAY_SIZE(wlancmds)) {
+                           cmd_hdl = wlancmds[pcmd->cmdcode].h2cfuns;
 
-               cmd_hdl = NULL;
+                               if (cmd_hdl) {
+                                       ret = cmd_hdl(pcmd->padapter, pcmd->parmbuf);
+                                       pcmd->res = ret;
+                               }
+                       } else {
+                               pcmd->res = H2C_PARAMETERS_ERROR;
+                       }
 
-post_process:
+                       cmd_hdl = NULL;
+               }
 
                /* call callback function for post-processed */
                if (pcmd->cmdcode < ARRAY_SIZE(rtw_cmd_callback)) {