net/hyperv: Remove the unnecessary memset in rndis_filter_send()
authorHaiyang Zhang <haiyangz@microsoft.com>
Sun, 5 Feb 2012 12:13:10 +0000 (12:13 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 5 Feb 2012 22:44:55 +0000 (17:44 -0500)
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>
drivers/net/hyperv/rndis_filter.c

index a60e5e2e621a209fb120d2aa0340646c1a3ad913..136efd84373fd0d2d2ee96a7a926bf1511caa056 100644 (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);