summaryrefslogtreecommitdiffstats
path: root/net/sched
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2014-01-09 07:42:25 +0100
committerDavid S. Miller <davem@davemloft.net>2014-01-13 20:17:31 +0100
commitf3c0773ff2875af6497c20cf63e42c186e19eef0 (patch)
tree8314a451384bb41d50056e7c30b63444e29725dd /net/sched
parentbonding: remove dead code from 3ad (diff)
downloadlinux-f3c0773ff2875af6497c20cf63e42c186e19eef0.tar.xz
linux-f3c0773ff2875af6497c20cf63e42c186e19eef0.zip
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>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions