aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/hyperv/netvsc.c
diff options
context:
space:
mode:
authorHaiyang Zhang <haiyangz@microsoft.com>2014-04-21 17:54:44 -0400
committerDavid S. Miller <davem@davemloft.net>2014-04-23 14:48:39 -0400
commit893f66277799cd46bdf97429cc5d16a815a51273 (patch)
tree55a10758faa4065052145662badf39d3a67947b6 /drivers/net/hyperv/netvsc.c
parent4baab26129e0540746744232022110dbe9e011e7 (diff)
hyperv: Simplify the send_completion variables
The union contains only one member now, so we use the variables in it directly. Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com> Reviewed-by: K. Y. Srinivasan <kys@microsoft.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/hyperv/netvsc.c')
-rw-r--r--drivers/net/hyperv/netvsc.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/net/hyperv/netvsc.c b/drivers/net/hyperv/netvsc.c
index b10334773b32..bbee44635035 100644
--- a/drivers/net/hyperv/netvsc.c
+++ b/drivers/net/hyperv/netvsc.c
@@ -479,9 +479,8 @@ static void netvsc_send_completion(struct netvsc_device *net_device,
479 if (nvsc_packet) { 479 if (nvsc_packet) {
480 q_idx = nvsc_packet->q_idx; 480 q_idx = nvsc_packet->q_idx;
481 channel = nvsc_packet->channel; 481 channel = nvsc_packet->channel;
482 nvsc_packet->completion.send.send_completion( 482 nvsc_packet->send_completion(nvsc_packet->
483 nvsc_packet->completion.send. 483 send_completion_ctx);
484 send_completion_ctx);
485 } 484 }
486 485
487 num_outstanding_sends = 486 num_outstanding_sends =
@@ -534,7 +533,7 @@ int netvsc_send(struct hv_device *device,
534 0xFFFFFFFF; 533 0xFFFFFFFF;
535 sendMessage.msg.v1_msg.send_rndis_pkt.send_buf_section_size = 0; 534 sendMessage.msg.v1_msg.send_rndis_pkt.send_buf_section_size = 0;
536 535
537 if (packet->completion.send.send_completion) 536 if (packet->send_completion)
538 req_id = (ulong)packet; 537 req_id = (ulong)packet;
539 else 538 else
540 req_id = 0; 539 req_id = 0;