Skip to content

Commit

Permalink
net/hyperv: Remove the unnecessary memset in rndis_filter_send()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Haiyang Zhang authored and David S. Miller committed Feb 5, 2012
1 parent 6f4c444 commit bce6080
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/net/hyperv/rndis_filter.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit bce6080

Please sign in to comment.