]> git.baikalelectronics.ru Git - kernel.git/commit
liquidio: Use zeroing memory allocator than allocator/memset
authorHimanshu Jha <himanshujha199640@gmail.com>
Sun, 31 Dec 2017 12:27:29 +0000 (17:57 +0530)
committerDavid S. Miller <davem@davemloft.net>
Wed, 3 Jan 2018 03:01:27 +0000 (22:01 -0500)
commit0448c76350675eff01f7f75512f0d8dd9a33a967
treea2deb7cf0ffc083566b6db6d7cef91c79198134b
parent7cbac82e1030a2d4742fa4bd7e100996b3820ca6
liquidio: Use zeroing memory allocator than allocator/memset

Use vzalloc for allocating zeroed memory and remove unnecessary
memset function.

Done using Coccinelle.
Generated-by: scripts/coccinelle/api/alloc/kzalloc-simple.cocci
0-day tested with no failures.

Suggested-by: Luis R. Rodriguez <mcgrof@kernel.org>
Signed-off-by: Himanshu Jha <himanshujha199640@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cavium/liquidio/octeon_device.c