aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/hyperv/netvsc_drv.c
diff options
context:
space:
mode:
authorKY Srinivasan <kys@microsoft.com>2014-02-16 19:38:43 -0500
committerDavid S. Miller <davem@davemloft.net>2014-02-17 16:32:31 -0500
commit86eedacc63074dbf304ce9c8b261bef9503c796d (patch)
treea88baf2f49ad8056d62c1408dca7b766ef954d5c /drivers/net/hyperv/netvsc_drv.c
parentc1b5994770ad5ae03336b5cdd1e0ad622a870a00 (diff)
Drivers: net: hyperv: Get rid of the rndis_filter_packet structure
This structure is redundant; get rid of it make the code little more efficient - get rid of the unnecessary indirection. Signed-off-by: K. Y. Srinivasan <kys@microsoft.com> Reviewed-by: Haiyang Zhang <haiyangz@microsoft.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/hyperv/netvsc_drv.c')
-rw-r--r--drivers/net/hyperv/netvsc_drv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/hyperv/netvsc_drv.c b/drivers/net/hyperv/netvsc_drv.c
index 7756118c2f0a..1eadc136a372 100644
--- a/drivers/net/hyperv/netvsc_drv.c
+++ b/drivers/net/hyperv/netvsc_drv.c
@@ -146,7 +146,7 @@ static int netvsc_start_xmit(struct sk_buff *skb, struct net_device *net)
146 /* Allocate a netvsc packet based on # of frags. */ 146 /* Allocate a netvsc packet based on # of frags. */
147 packet = kzalloc(sizeof(struct hv_netvsc_packet) + 147 packet = kzalloc(sizeof(struct hv_netvsc_packet) +
148 (num_pages * sizeof(struct hv_page_buffer)) + 148 (num_pages * sizeof(struct hv_page_buffer)) +
149 sizeof(struct rndis_filter_packet) + 149 sizeof(struct rndis_message) +
150 NDIS_VLAN_PPI_SIZE, GFP_ATOMIC); 150 NDIS_VLAN_PPI_SIZE, GFP_ATOMIC);
151 if (!packet) { 151 if (!packet) {
152 /* out of memory, drop packet */ 152 /* out of memory, drop packet */