hv_netvsc: Clean up two unused variables
authorHaiyang Zhang <haiyangz@microsoft.com>
Mon, 6 Apr 2015 22:22:52 +0000 (15:22 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 7 Apr 2015 22:45:32 +0000 (18:45 -0400)
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>
drivers/net/hyperv/hyperv_net.h
drivers/net/hyperv/netvsc.c
drivers/net/hyperv/rndis_filter.c

index 309adee6e7910db99cfe2cd08d332c24033c1d15..95a25e4b26016bd808b14959bffffa6fa363911f 100644 (file)
@@ -130,7 +130,6 @@ struct hv_netvsc_packet {
        u32 status;
        bool part_of_skb;
 
-       struct hv_device *device;
        bool is_data_pkt;
        bool xmit_more; /* from skb */
        u16 vlan_tci;
index f69923695b5b1b6fbb886f523203ba86656ac5f6..7e83c6ad4bb52b0bef11b054a42311016813b7a8 100644 (file)
@@ -1011,7 +1011,6 @@ static void netvsc_receive(struct netvsc_device *net_device,
        }
 
        count = vmxferpage_packet->range_cnt;
-       netvsc_packet->device = device;
        netvsc_packet->channel = channel;
 
        /* Each range represents 1 RNDIS pkt that contains 1 ethernet frame */
index a1604376aee1a1d9fb420e77e4d6791fc4719fa1..0d92efefd796c9b631beeca1b35ad9979cb36d2f 100644 (file)
@@ -47,8 +47,6 @@ struct rndis_request {
 
        /* Simplify allocation by having a netvsc packet inline */
        struct hv_netvsc_packet pkt;
-       /* Set 2 pages for rndis requests crossing page boundary */
-       struct hv_page_buffer buf[2];
 
        struct rndis_message request_msg;
        /*