staging: unisys: visorbus: remove uneeded initializations
authorDavid Kershner <david.kershner@unisys.com>
Wed, 30 Aug 2017 17:36:26 +0000 (13:36 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 31 Aug 2017 16:17:39 +0000 (18:17 +0200)
Several variables were initialized when not needed. Remove the extraneous
initializations.

Signed-off-by: David Kershner <david.kershner@unisys.com>
Reviewed-by: Tim Sell <timothy.sell@unisys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/unisys/visorbus/visorchipset.c

index a602ba6..090818f 100644 (file)
@@ -312,8 +312,8 @@ static void *parser_string_get(struct parser_context *ctx)
 {
        u8 *pscan;
        unsigned long nscan;
-       int value_length = -1;
-       void *value = NULL;
+       int value_length;
+       void *value;
        int i;
 
        pscan = ctx->curr;