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>
This commit is contained in:
Haiyang Zhang
2014-04-21 14:54:44 -07:00
committed by David S. Miller
parent 4baab26129
commit 893f662777
4 changed files with 11 additions and 16 deletions

View File

@@ -136,13 +136,9 @@ struct hv_netvsc_packet {
u16 q_idx;
struct vmbus_channel *channel;
union {
struct {
u64 send_completion_tid;
void *send_completion_ctx;
void (*send_completion)(void *context);
} send;
} completion;
u64 send_completion_tid;
void *send_completion_ctx;
void (*send_completion)(void *context);
/* This points to the memory after page_buf */
struct rndis_message *rndis_msg;