]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitcb7ac381bc35d0e4c144ae536040173d2181bb26
treef693270c5c5d8b8559d62fff14266bf5725f6b8d
parent39534a9f603a8ff7deb69c60dfc5bab201f87e65
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