staging: unisys: visorbus: remove g_devicechangestate_packet
authorJon Frisch <jon.frisch@unisys.com>
Fri, 2 Sep 2016 20:41:28 +0000 (16:41 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 12 Sep 2016 11:24:13 +0000 (13:24 +0200)
This patch removes the unused
struct controlvm_message_packet g_devicechangestate_packet.
The struct is set but never called.

Signed-off-by: Jon Frisch <jon.frisch@unisys.com>
Signed-off-by: David Kershner <david.kershner@unisys.com>
Reported-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/unisys/visorbus/visorchipset.c

index f70f609d810168d7f96c9aeb5341a8b8c3b3fac3..52f79c791d1d15cd473439cd104b49582b0a6017 100644 (file)
@@ -98,7 +98,6 @@ static struct delayed_work periodic_controlvm_work;
 
 static struct cdev file_cdev;
 static struct visorchannel **file_controlvm_channel;
-static struct controlvm_message_packet g_devicechangestate_packet;
 
 static LIST_HEAD(bus_info_list);
 static LIST_HEAD(dev_info_list);
@@ -1717,7 +1716,6 @@ handle_command(struct controlvm_message inmsg, u64 channel_addr)
                         * when sending back the response to Command
                         */
                        my_device_changestate(&inmsg);
-                       g_devicechangestate_packet = inmsg.cmd;
                        break;
                }
                break;