scsi: libcxgbi: Use kvzalloc instead of opencoded kzalloc/vzalloc
authorDenis Efremov <efremov@linux.com>
Sat, 1 Aug 2020 13:31:23 +0000 (16:31 +0300)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 21 Aug 2020 03:34:47 +0000 (23:34 -0400)
commitee9108fedf63c6b8cfc40767c472680d51dd1662
treef693270c5c5d8b8559d62fff14266bf5725f6b8d
parentca358af1d1bb5b9eb75f3998b20ab68f6b3ce69c
scsi: libcxgbi: Use kvzalloc instead of opencoded kzalloc/vzalloc

Remove cxgbi_alloc_big_mem(), cxgbi_free_big_mem() functions and use
kvzalloc/kvfree instead. __GFP_NOWARN added to kvzalloc() call because we
already print a warning in case of allocation fail.

Link: https://lore.kernel.org/r/20200801133123.61834-1-efremov@linux.com
Signed-off-by: Denis Efremov <efremov@linux.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/cxgbi/libcxgbi.c
drivers/scsi/cxgbi/libcxgbi.h