]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
staging: unisys: visorbus: don't need local variable cmd
authorDavid Kershner <david.kershner@unisys.com>
Wed, 27 Sep 2017 17:14:07 +0000 (13:14 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Sep 2017 09:17:12 +0000 (11:17 +0200)
The local variable cmd was just being used to dereference a field inside
of it. Get rid of the variable and just derefernce the parameter being
passed in.

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 315000fd8122dfbb75744822bb96ff08acc6683a..b7865b18c362e492f6c1b20ce21683eb9fa257cd 100644 (file)
@@ -595,9 +595,8 @@ static int visorbus_create(struct controlvm_message *inmsg)
 
 static int visorbus_destroy(struct controlvm_message *inmsg)
 {
-       struct controlvm_message_packet *cmd = &inmsg->cmd;
        struct controlvm_message_header *pmsg_hdr = NULL;
-       u32 bus_no = cmd->destroy_bus.bus_no;
+       u32 bus_no = inmsg->cmd.destroy_bus.bus_no;
        struct visor_device *bus_info;
        int err;