]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
scsi: storvsc: Prefer kcalloc over kzalloc with multiply
authorMiguel Bernal Marin <miguel.bernal.marin@linux.intel.com>
Thu, 16 Mar 2017 06:58:23 +0000 (00:58 -0600)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 14 Apr 2017 03:04:02 +0000 (23:04 -0400)
commite04085285b829dc922e78768a9abb390a8caed31
tree65f049376fe128337a53046d2bfa05148127a2e6
parent1dd0c0e4fd02dc5e5bfaf89bd4656aabe4ae3cb3
scsi: storvsc: Prefer kcalloc over kzalloc with multiply

Use kcalloc for allocating an array instead of kzalloc with multiply,
kcalloc is the preferred API.

Found with checkpatch.

Signed-off-by: Miguel Bernal Marin <miguel.bernal.marin@linux.intel.com>
Reviewed-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/storvsc_drv.c