Commit bce60806 authored by Haiyang Zhang's avatar Haiyang Zhang Committed by David S. Miller

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: default avatarHaiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: default avatarK. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 6f4c4446
...@@ -778,8 +778,6 @@ int rndis_filter_send(struct hv_device *dev, ...@@ -778,8 +778,6 @@ int rndis_filter_send(struct hv_device *dev,
/* Add the rndis header */ /* Add the rndis header */
filter_pkt = (struct rndis_filter_packet *)pkt->extension; filter_pkt = (struct rndis_filter_packet *)pkt->extension;
memset(filter_pkt, 0, sizeof(struct rndis_filter_packet));
rndis_msg = &filter_pkt->msg; rndis_msg = &filter_pkt->msg;
rndis_msg_size = RNDIS_MESSAGE_SIZE(struct rndis_packet); rndis_msg_size = RNDIS_MESSAGE_SIZE(struct rndis_packet);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment