Commit f1b8eea0 authored by Christophe JAILLET's avatar Christophe JAILLET Committed by Marcel Holtmann
Browse files

Bluetooth: 6lowpan: No need to clear memory twice



'peer_addr' is a structure embedded in 'struct lowpan_peer'. So there is no
need to explicitly call memset(0) on it. It is already zeroed by kzalloc()
when 'peer' is allocated.

Signed-off-by: default avatarChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
parent 599ece4f
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -641,7 +641,6 @@ static struct l2cap_chan *add_peer_chan(struct l2cap_chan *chan,
		return NULL;

	peer->chan = chan;
	memset(&peer->peer_addr, 0, sizeof(struct in6_addr));

	baswap((void *)peer->lladdr, &chan->dst);