Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 929555a2 authored by Christophe Jaillet's avatar Christophe Jaillet Committed by Roland Dreier
Browse files

RDMA/nes: Remove unnecessary memset()



Remove an explicit memset(..., 0, ...) of a 'listener' structure
allocated with kzalloc().

Signed-off-by: default avatarChristophe Jaillet <christophe.jaillet@wanadoo.fr>
Acked-by: default avatarFaisal Latif <faisal@neteffect.com>
Signed-off-by: default avatarRoland Dreier <rolandd@cisco.com>
parent 969a60f9
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -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;