]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: qla2xxx: Replace vmalloc + memset with vzalloc
authorChuhong Yuan <hslester96@gmail.com>
Thu, 18 Jul 2019 07:45:18 +0000 (15:45 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 30 Jul 2019 16:20:38 +0000 (12:20 -0400)
commit794025f820d2a11b64313c84d03a829eac1734ce
tree8b930236fccc2f92dc6cdd0e4bbb0bbc493f14d4
parent20774be50c3619bf184c5c113c3894514c8fa1e7
scsi: qla2xxx: Replace vmalloc + memset with vzalloc

Use vzalloc instead of using vmalloc to allocate memory and then zeroing it
with memset.  This simplifies the code.

Signed-off-by: Chuhong Yuan <hslester96@gmail.com>
Acked-by: Himanshu Madhani <hmadhani@marvell.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/qla2xxx/qla_attr.c