android_kernel_oneplus_msm8998/drivers/net/ethernet/qlogic
Joe Perches f3c0773ff2 qlcnic: Convert vmalloc/memset to kcalloc
vmalloc is a limited resource.  Don't use it unnecessarily.

It seems this allocation should work with kcalloc.

Remove unnecessary memset(,0,) of buf as it's completely
overwritten as the previously only unset field in
struct qlcnic_pci_func_cfg is now set to 0.

Use kfree instead of vfree.
Use ETH_ALEN instead of 6.

Signed-off-by: Joe Perches <joe@perches.com>
Acked-by: Jitendra Kalsaria <jitendra.kalsaria@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2014-01-13 11:17:31 -08:00
..
netxen Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2014-01-06 17:37:45 -05:00
qlcnic qlcnic: Convert vmalloc/memset to kcalloc 2014-01-13 11:17:31 -08:00
qlge qlge: make local function static 2013-12-26 13:29:35 -05:00
Kconfig qlcnic: dcb: Query adapter DCB capabilities. 2013-08-27 15:21:13 -04:00
Makefile
qla3xxx.c net: qla3xxx: remove unnecessary pci_set_drvdata() 2013-10-22 02:11:52 -04:00
qla3xxx.h