Message ID | 1328479990-1436-3-git-send-email-haiyangz@microsoft.com |
---|---|
State | Accepted, archived |
Delegated to: | David Miller |
Headers | show |
From: Haiyang Zhang <haiyangz@microsoft.com> Date: Sun, 5 Feb 2012 14:13:10 -0800 > 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> Applied. -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/drivers/net/hyperv/rndis_filter.c b/drivers/net/hyperv/rndis_filter.c index a60e5e2..136efd8 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);