]> git.baikalelectronics.ru Git - kernel.git/commit
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>
Fri, 4 Mar 2022 15:10:49 +0000 (16:10 +0100)
commit43ab021d5536d1921dcb419151df3a9c7578fecf
tree788f11ec51235f5a75b46d60fcfd6749d52207b7
parent5cc970913895b370a75652e0befee0e5f177bf16
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