]> git.baikalelectronics.ru Git - kernel.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)
commit7f279be9a8e5d1e3ca0789bb54004b2785cadd82
tree65f049376fe128337a53046d2bfa05148127a2e6
parent304f721272f494a6cc48ae1a75c0fdd8efc538bf
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