staging: rtl8188eu: remove a dead assignment
authorMartin Kaiser <martin@kaiser.cx>
Thu, 8 Apr 2021 19:56:00 +0000 (21:56 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 9 Apr 2021 14:17:23 +0000 (16:17 +0200)
There's no need to set cmd_hdl to NULL after it's used. It will be set
again before the next command is processed.

Signed-off-by: Martin Kaiser <martin@kaiser.cx>
Link: https://lore.kernel.org/r/20210408195601.4762-11-martin@kaiser.cx
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/core/rtw_cmd.c

index e1bf4ce..9d358dc 100644 (file)
@@ -217,8 +217,6 @@ _next:
                        } else {
                                pcmd->res = H2C_PARAMETERS_ERROR;
                        }
-
-                       cmd_hdl = NULL;
                }
 
                /* call callback function for post-processed */