diff options
author | Jes Sorensen <Jes.Sorensen@redhat.com> | 2015-05-05 18:35:58 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-05-08 15:25:57 +0200 |
commit | 5157d88c9becd6a8cdb2978afaaf63b56b249c51 (patch) | |
tree | ea9499a8b87c0c2e37b8ea9ebc64494ff396e680 | |
parent | staging: unisys: No point in checking != 0 (diff) | |
download | linux-dev-5157d88c9becd6a8cdb2978afaaf63b56b249c51.tar.xz linux-dev-5157d88c9becd6a8cdb2978afaaf63b56b249c51.zip |
staging: unisys: Remove write-only variable g_diag_msg_hdr
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Benjamin Romer <benjamin.romer@unisys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/staging/unisys/visorchipset/visorchipset_main.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/staging/unisys/visorchipset/visorchipset_main.c b/drivers/staging/unisys/visorchipset/visorchipset_main.c index 3b5f3d6ae2ff..b733147b4dbb 100644 --- a/drivers/staging/unisys/visorchipset/visorchipset_main.c +++ b/drivers/staging/unisys/visorchipset/visorchipset_main.c @@ -75,7 +75,6 @@ static struct delayed_work periodic_controlvm_work; static struct workqueue_struct *periodic_controlvm_workqueue; static DEFINE_SEMAPHORE(notifier_lock); -static struct controlvm_message_header g_diag_msg_hdr; static struct controlvm_message_header g_chipset_msg_hdr; static struct controlvm_message_header g_del_dump_msg_hdr; static const uuid_le spar_diag_pool_channel_protocol_uuid = @@ -1742,7 +1741,6 @@ handle_command(struct controlvm_message inmsg, HOSTADDRESS channel_addr) /* save the hdr and cmd structures for later use */ /* when sending back the response to Command */ my_device_changestate(&inmsg); - g_diag_msg_hdr = inmsg.hdr; g_devicechangestate_packet = inmsg.cmd; break; } @@ -2220,8 +2218,6 @@ visorchipset_init(void) goto cleanup; } - memset(&g_diag_msg_hdr, 0, sizeof(struct controlvm_message_header)); - memset(&g_chipset_msg_hdr, 0, sizeof(struct controlvm_message_header)); memset(&g_del_dump_msg_hdr, 0, sizeof(struct controlvm_message_header)); @@ -2287,8 +2283,6 @@ visorchipset_exit(void) cleanup_controlvm_structures(); - memset(&g_diag_msg_hdr, 0, sizeof(struct controlvm_message_header)); - memset(&g_chipset_msg_hdr, 0, sizeof(struct controlvm_message_header)); memset(&g_del_dump_msg_hdr, 0, sizeof(struct controlvm_message_header)); |