summaryrefslogtreecommitdiff
path: root/drivers/staging
diff options
context:
space:
mode:
authorDavid Kershner <david.kershner@unisys.com>2017-08-30 13:36:26 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-08-31 18:17:39 +0200
commitd20a0171fbeff54460a0e9bdf6c01ee226b4412a (patch)
tree6dddc5d8479ef611be7ace38a30502ab0cb64d78 /drivers/staging
parente4a064300002986132afa426fbe3f7376ce8f7cd (diff)
staging: unisys: visorbus: remove uneeded initializations
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>
Diffstat (limited to 'drivers/staging')
-rw-r--r--drivers/staging/unisys/visorbus/visorchipset.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/unisys/visorbus/visorchipset.c b/drivers/staging/unisys/visorbus/visorchipset.c
index a602ba605bf5..090818f2f7b2 100644
--- a/drivers/staging/unisys/visorbus/visorchipset.c
+++ b/drivers/staging/unisys/visorbus/visorchipset.c
@@ -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;