]> err.no Git - linux-2.6/commitdiff
RDMA/nes: Remove unnecessary memset()
authorChristophe Jaillet <christophe.jaillet@wanadoo.fr>
Tue, 15 Jul 2008 06:48:43 +0000 (23:48 -0700)
committerRoland Dreier <rolandd@cisco.com>
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 <christophe.jaillet@wanadoo.fr>
Acked-by: Faisal Latif <faisal@neteffect.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/nes/nes_cm.c

index 9a4b40fae40db3c8994daf5ea66a5cfcfd3b55b5..6aa531d5276dfd969114d07ebcc4c871e611e79d 100644 (file)
@@ -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;