From: David Kershner Date: Wed, 30 Aug 2017 17:36:26 +0000 (-0400) Subject: staging: unisys: visorbus: remove uneeded initializations X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d20a0171fbeff54460a0e9bdf6c01ee226b4412a;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git staging: unisys: visorbus: remove uneeded initializations Several variables were initialized when not needed. Remove the extraneous initializations. Signed-off-by: David Kershner Reviewed-by: Tim Sell Signed-off-by: Greg Kroah-Hartman --- 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;