From: Jon Frisch Date: Fri, 2 Sep 2016 20:41:28 +0000 (-0400) Subject: staging: unisys: visorbus: remove g_devicechangestate_packet X-Git-Tag: v4.9-rc1~119^2~646 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=1bda5a2b0acc4f99b602f612c24da777a989c095;p=karo-tx-linux.git staging: unisys: visorbus: remove g_devicechangestate_packet This patch removes the unused struct controlvm_message_packet g_devicechangestate_packet. The struct is set but never called. Signed-off-by: Jon Frisch Signed-off-by: David Kershner Reported-by: Greg Kroah-Hartman Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/unisys/visorbus/visorchipset.c b/drivers/staging/unisys/visorbus/visorchipset.c index f70f609d8101..52f79c791d1d 100644 --- a/drivers/staging/unisys/visorbus/visorchipset.c +++ b/drivers/staging/unisys/visorbus/visorchipset.c @@ -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;