staging: unisys: visorbus: Remove useless initialization.
authorDavid Kershner <david.kershner@unisys.com>
Wed, 30 Aug 2017 17:36:21 +0000 (13:36 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 31 Aug 2017 16:17:39 +0000 (18:17 +0200)
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>
drivers/staging/unisys/visorbus/visorchipset.c

index 88cefa59f8206655509c42fe4a8c88724b42ce76..98c991bb67e540fa65b79a86f9877002acddc74d 100644 (file)
@@ -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;