]> www.infradead.org Git - users/willy/xarray.git/commit
scsi: aic7xxx: Use kzalloc() instead of kmalloc()+memset()
authorAlex Dewar <alex.dewar@gmx.co.uk>
Fri, 3 Apr 2020 16:36:10 +0000 (17:36 +0100)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 24 Apr 2020 16:48:06 +0000 (12:48 -0400)
commit9cd7d494bd2b1fb53884a797b460b4f1741b82cc
treee6c01b83dd911a177fb1f23dbed2fd4c0a348bc1
parentf8e25f97407c2bcfaf54704938a5e5120e190002
scsi: aic7xxx: Use kzalloc() instead of kmalloc()+memset()

There are a couple of places where kzalloc() could be used directly instead
of calling kmalloc() then memset(). Replace them.

Link: https://lore.kernel.org/r/20200403163611.46756-1-alex.dewar@gmx.co.uk
Signed-off-by: Alex Dewar <alex.dewar@gmx.co.uk>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/aic7xxx/aic79xx_core.c
drivers/scsi/aic7xxx/aic7xxx_core.c