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>
This commit is contained in:
Haiyang Zhang 2012-02-05 12:13:10 +00:00 committed by David S. Miller
parent 6f4c444607
commit bce60806de

View File

@ -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);