Bluetooth: 6lowpan: No need to clear memory twice
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sun, 13 Feb 2022 21:30:47 +0000 (22:30 +0100)
committerMarcel Holtmann <marcel@holtmann.org>
Mon, 14 Feb 2022 13:40:13 +0000 (14:40 +0100)
commit952b6d5f18594418963b70467a8cd115cfa37a5d
tree8a61d216c744233bfc554deac1374753369e71a5
parent42a401988bc4a517691a6195c4e7525c8e1ea520
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: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/6lowpan.c