From: Haiyang Zhang Date: Sun, 5 Feb 2012 12:13:10 +0000 (+0000) Subject: net/hyperv: Remove the unnecessary memset in rndis_filter_send() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=bce60806de882cf15ad3a80a51e9878863a8fced;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git 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 Signed-off-by: K. Y. Srinivasan Signed-off-by: David S. Miller --- 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);