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)
commit3e36ca483a642f441b8e29b4e98091f2c62bfb38
tree049d5ea43cab5b855a10bd7c2c698abcc4039980
parent4037a7747d7b5a3e5bb4d10fb9ea6e2fd8a23c3b
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