projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6f4c444
)
net/hyperv: Remove the unnecessary memset in rndis_filter_send()
author
Haiyang Zhang
<haiyangz@microsoft.com>
Sun, 5 Feb 2012 12:13:10 +0000
(12:13 +0000)
committer
David 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
patch
|
blob
|
blame
|
history
diff --git
a/drivers/net/hyperv/rndis_filter.c
b/drivers/net/hyperv/rndis_filter.c
index a60e5e2e621a209fb120d2aa0340646c1a3ad913..136efd84373fd0d2d2ee96a7a926bf1511caa056 100644
(file)
--- 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);