Commit 929555a2baed9b0b050d03532655bfd721a43c44

Authored by Christophe Jaillet
Committed by Roland Dreier
1 parent 969a60f9db

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>

Showing 1 changed file with 0 additions and 1 deletions Side-by-side Diff

drivers/infiniband/hw/nes/nes_cm.c
... ... @@ -1603,7 +1603,6 @@
1603 1603 return NULL;
1604 1604 }
1605 1605  
1606   - memset(listener, 0, sizeof(struct nes_cm_listener));
1607 1606 listener->loc_addr = htonl(cm_info->loc_addr);
1608 1607 listener->loc_port = htons(cm_info->loc_port);
1609 1608 listener->reused_node = 0;