瀏覽代碼

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>
David Kershner 8 年之前
父節點
當前提交
d20a0171fb
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      drivers/staging/unisys/visorbus/visorchipset.c

+ 2 - 2
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;