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>
This commit is contained in:
parent
969a60f9db
commit
929555a2ba
1 changed files with 0 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue