]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - drivers/net/wireless/mwl8k.c
mwl8k: use kcalloc instead of kmalloc & memset
authorShan Wei <shanwei@cn.fujitsu.com>
Tue, 8 Mar 2011 03:02:03 +0000 (11:02 +0800)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 9 Mar 2011 21:10:45 +0000 (16:10 -0500)
commitb9ede5f1dc03f96949dcaa8f8b3483766c047260
tree8b33c42e345cdaa5d9954043ed1b001e125714cd
parentd07bfd8b6f20a81d7ec65c50f35b053d9e3aa740
mwl8k: use kcalloc instead of kmalloc & memset

Use kcalloc or kzalloc rather than the combination of kmalloc and memset.

Thanks coccicheck for detecting this.
(http://coccinelle.lip6.fr/)

Signed-off-by: Shan Wei <shanwei@cn.fujitsu.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/mwl8k.c