]> 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)
commitc37d3c29111e0584e03475c5f4ec2d63269c7fb4
tree049d5ea43cab5b855a10bd7c2c698abcc4039980
parent864ec6480db4bde41dfef824d1d94dcef0d7b97e
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