OSDN Git Service

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)
commit72bca2084a21edda74b802bc076083d5951f67b4
treea2deb7cf0ffc083566b6db6d7cef91c79198134b
parentaa006d1ad0a58f5dad0065b25263a73365319996
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