aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hv
diff options
context:
space:
mode:
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>2012-10-22 05:20:20 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-10-24 18:45:35 -0400
commitb45635542ede4ffeecb8fc4a1033ac5511ec2439 (patch)
tree41ab9bef2b66a9e9d6a86c6a34eb0df27b6a2029 /drivers/hv
parent8b5c8b6396bc008fc23ade51a260594d59db4749 (diff)
Drivers: hv: remove unused variable from channel_mgmt.c
The variables guidtype, guidinstance and initiate are initialized but never used otherwise, so remove the unused variables. dpatch engine is used to auto generate this patch. (https://github.com/weiyj/dpatch) Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/hv')
-rw-r--r--drivers/hv/channel_mgmt.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/drivers/hv/channel_mgmt.c b/drivers/hv/channel_mgmt.c
index 2b8b8d4558d2..2f84c5cff8d4 100644
--- a/drivers/hv/channel_mgmt.c
+++ b/drivers/hv/channel_mgmt.c
@@ -265,14 +265,9 @@ static void vmbus_onoffer(struct vmbus_channel_message_header *hdr)
265{ 265{
266 struct vmbus_channel_offer_channel *offer; 266 struct vmbus_channel_offer_channel *offer;
267 struct vmbus_channel *newchannel; 267 struct vmbus_channel *newchannel;
268 uuid_le *guidtype;
269 uuid_le *guidinstance;
270 268
271 offer = (struct vmbus_channel_offer_channel *)hdr; 269 offer = (struct vmbus_channel_offer_channel *)hdr;
272 270
273 guidtype = &offer->offer.if_type;
274 guidinstance = &offer->offer.if_instance;
275
276 /* Allocate the channel object and save this offer. */ 271 /* Allocate the channel object and save this offer. */
277 newchannel = alloc_channel(); 272 newchannel = alloc_channel();
278 if (!newchannel) { 273 if (!newchannel) {
@@ -470,7 +465,6 @@ static void vmbus_onversion_response(
470{ 465{
471 struct vmbus_channel_msginfo *msginfo; 466 struct vmbus_channel_msginfo *msginfo;
472 struct vmbus_channel_message_header *requestheader; 467 struct vmbus_channel_message_header *requestheader;
473 struct vmbus_channel_initiate_contact *initiate;
474 struct vmbus_channel_version_response *version_response; 468 struct vmbus_channel_version_response *version_response;
475 unsigned long flags; 469 unsigned long flags;
476 470
@@ -484,8 +478,6 @@ static void vmbus_onversion_response(
484 478
485 if (requestheader->msgtype == 479 if (requestheader->msgtype ==
486 CHANNELMSG_INITIATE_CONTACT) { 480 CHANNELMSG_INITIATE_CONTACT) {
487 initiate =
488 (struct vmbus_channel_initiate_contact *)requestheader;
489 memcpy(&msginfo->response.version_response, 481 memcpy(&msginfo->response.version_response,
490 version_response, 482 version_response,
491 sizeof(struct vmbus_channel_version_response)); 483 sizeof(struct vmbus_channel_version_response));