projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
969a60f
)
RDMA/nes: Remove unnecessary memset()
author
Christophe Jaillet
<
[email protected]
>
Tue, 15 Jul 2008 06:48:43 +0000
(23:48 -0700)
committer
Roland Dreier
<
[email protected]
>
Tue, 15 Jul 2008 06:48:43 +0000
(23:48 -0700)
Remove an explicit memset(..., 0, ...) of a 'listener' structure
allocated with kzalloc().
Signed-off-by: Christophe Jaillet <
[email protected]
>
Acked-by: Faisal Latif <
[email protected]
>
Signed-off-by: Roland Dreier <
[email protected]
>
drivers/infiniband/hw/nes/nes_cm.c
patch
|
blob
|
history
diff --git
a/drivers/infiniband/hw/nes/nes_cm.c
b/drivers/infiniband/hw/nes/nes_cm.c
index 9a4b40fae40db3c8994daf5ea66a5cfcfd3b55b5..6aa531d5276dfd969114d07ebcc4c871e611e79d 100644
(file)
--- a/
drivers/infiniband/hw/nes/nes_cm.c
+++ b/
drivers/infiniband/hw/nes/nes_cm.c
@@
-1603,7
+1603,6
@@
static struct nes_cm_listener *mini_cm_listen(struct nes_cm_core *cm_core,
return NULL;
}
- memset(listener, 0, sizeof(struct nes_cm_listener));
listener->loc_addr = htonl(cm_info->loc_addr);
listener->loc_port = htons(cm_info->loc_port);
listener->reused_node = 0;