]> git.baikalelectronics.ru Git - kernel.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)
commit5d1c072bd9b645c28e473dd758e2cd34ae14558f
treee6c01b83dd911a177fb1f23dbed2fd4c0a348bc1
parentcac9c0076d06f8abdb36930d98fd1a87e13c116a
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