summaryrefslogtreecommitdiff
path: root/drivers/net/hyperv
diff options
context:
space:
mode:
authorHaiyang Zhang <haiyangz@microsoft.com>2012-02-05 16:13:10 +0400
committerDavid S. Miller <davem@davemloft.net>2012-02-06 02:44:55 +0400
commitbce60806de882cf15ad3a80a51e9878863a8fced (patch)
treeec9869f325c58eea27e1d993f769492ae51fa7c4 /drivers/net/hyperv
parent6f4c44460750dd4eb9926a58ab1ad0ceacef8284 (diff)
downloadlinux-bce60806de882cf15ad3a80a51e9878863a8fced.tar.xz
net/hyperv: Remove the unnecessary memset in rndis_filter_send()
The memory has been allocated by kzalloc, so it's unnecessary to memset again. Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com> Signed-off-by: K. Y. Srinivasan <kys@microsoft.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/hyperv')
-rw-r--r--drivers/net/hyperv/rndis_filter.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/net/hyperv/rndis_filter.c b/drivers/net/hyperv/rndis_filter.c
index a60e5e2e621a..136efd84373f 100644
--- a/drivers/net/hyperv/rndis_filter.c
+++ b/drivers/net/hyperv/rndis_filter.c
@@ -778,8 +778,6 @@ int rndis_filter_send(struct hv_device *dev,
/* Add the rndis header */
filter_pkt = (struct rndis_filter_packet *)pkt->extension;
- memset(filter_pkt, 0, sizeof(struct rndis_filter_packet));
-
rndis_msg = &filter_pkt->msg;
rndis_msg_size = RNDIS_MESSAGE_SIZE(struct rndis_packet);