Explorar o código

staging: unisys: visorbus: Remove useless initialization.

The variable ctx was allocated with kzalloc, so all the data inside is
zero, no need to reset it to 0.

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 %!s(int64=8) %!d(string=hai) anos
pai
achega
a6f24e9554
Modificáronse 1 ficheiros con 0 adicións e 3 borrados
  1. 0 3
      drivers/staging/unisys/visorbus/visorchipset.c

+ 0 - 3
drivers/staging/unisys/visorbus/visorchipset.c

@@ -1477,9 +1477,6 @@ static struct parser_context *parser_init_byte_stream(u64 addr, u32 bytes,
 
 	ctx->allocbytes = allocbytes;
 	ctx->param_bytes = bytes;
-	ctx->curr = NULL;
-	ctx->bytes_remaining = 0;
-	ctx->byte_stream = false;
 	mapping = memremap(addr, bytes, MEMREMAP_WB);
 	if (!mapping)
 		goto err_finish_ctx;