]> git.baikalelectronics.ru Git - kernel.git/commit
liquidio: Replace vmalloc + memset with vzalloc
authorChuhong Yuan <hslester96@gmail.com>
Thu, 18 Jul 2019 07:45:42 +0000 (15:45 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 18 Jul 2019 18:54:29 +0000 (11:54 -0700)
commitbdb31d1aa65ee2db7251b13adb8e48b93219e844
tree8e5eba015e8d1311280655082e0ea07cafe87726
parent6d8ce0caa144d5c7d3c1c2336d1818ad8f81a324
liquidio: Replace vmalloc + memset with vzalloc

Use vzalloc and vzalloc_node instead of using vmalloc and
vmalloc_node and then zeroing the allocated memory by
memset 0.
This simplifies the code.

Signed-off-by: Chuhong Yuan <hslester96@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cavium/liquidio/request_manager.c