]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Use kzalloc instead of kmalloc/memset
authorWei Yongjun <weiyongjun1@huawei.com>
Sat, 10 Sep 2016 12:21:22 +0000 (12:21 +0000)
committerMarcel Holtmann <marcel@holtmann.org>
Mon, 19 Sep 2016 18:19:34 +0000 (20:19 +0200)
commit54b8702e24d6c003e0c5cfc680624762e8a3e868
tree049d5ea43cab5b855a10bd7c2c698abcc4039980
parentae4b9602436ba81d754f15e596038fc16544a6e4
Bluetooth: Use kzalloc instead of kmalloc/memset

Use kzalloc rather than kmalloc followed by memset with 0.

Generated by: scripts/coccinelle/api/alloc/kzalloc-simple.cocci

Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/mgmt.c