aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristophe Jaillet <christophe.jaillet@wanadoo.fr>2008-07-15 02:48:43 -0400
committerRoland Dreier <rolandd@cisco.com>2008-07-15 02:48:43 -0400
commit929555a2baed9b0b050d03532655bfd721a43c44 (patch)
treefdef410bfe02bab41f71e982af8c5bc467f47df4
parent969a60f9db3f879f95bd37026a3c3bf02cc2568f (diff)
RDMA/nes: Remove unnecessary memset()
Remove an explicit memset(..., 0, ...) of a 'listener' structure allocated with kzalloc(). Signed-off-by: Christophe Jaillet <christophe.jaillet@wanadoo.fr> Acked-by: Faisal Latif <faisal@neteffect.com> Signed-off-by: Roland Dreier <rolandd@cisco.com>
-rw-r--r--drivers/infiniband/hw/nes/nes_cm.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/nes/nes_cm.c b/drivers/infiniband/hw/nes/nes_cm.c
index 9a4b40fae40d..6aa531d5276d 100644
--- 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,
1603 return NULL; 1603 return NULL;
1604 } 1604 }
1605 1605
1606 memset(listener, 0, sizeof(struct nes_cm_listener));
1607 listener->loc_addr = htonl(cm_info->loc_addr); 1606 listener->loc_addr = htonl(cm_info->loc_addr);
1608 listener->loc_port = htons(cm_info->loc_port); 1607 listener->loc_port = htons(cm_info->loc_port);
1609 listener->reused_node = 0; 1608 listener->reused_node = 0;