diff options
author | Haiyang Zhang <haiyangz@microsoft.com> | 2012-10-02 05:30:22 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-10-02 14:39:30 -0400 |
commit | 6562640bd3b368a7ffb1caa61c82abe6e9d54b3b (patch) | |
tree | 3add1f3f656ec7505abd84aaea3355c4c22b60bd /drivers/net/hyperv/netvsc.c | |
parent | 99e3fcfa34e7ea6dbb44fe5df51b79ccb6f73d3d (diff) | |
download | op-kernel-dev-6562640bd3b368a7ffb1caa61c82abe6e9d54b3b.zip op-kernel-dev-6562640bd3b368a7ffb1caa61c82abe6e9d54b3b.tar.gz |
hyperv: Remove extra allocated space for recv_pkt_list elements
The receive code path doesn't use the page buffer, so remove the
extra allocated space here.
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.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/net/hyperv/netvsc.c b/drivers/net/hyperv/netvsc.c index 4a1a5f5..d9c4c03 100644 --- a/drivers/net/hyperv/netvsc.c +++ b/drivers/net/hyperv/netvsc.c @@ -904,9 +904,7 @@ int netvsc_device_add(struct hv_device *device, void *additional_info) INIT_LIST_HEAD(&net_device->recv_pkt_list); for (i = 0; i < NETVSC_RECEIVE_PACKETLIST_COUNT; i++) { - packet = kzalloc(sizeof(struct hv_netvsc_packet) + - (NETVSC_RECEIVE_SG_COUNT * - sizeof(struct hv_page_buffer)), GFP_KERNEL); + packet = kzalloc(sizeof(struct hv_netvsc_packet), GFP_KERNEL); if (!packet) break; |