]> git.baikalelectronics.ru Git - kernel.git/commit
[SCSI] megaraid_sas: combine kmalloc+memset into kzalloc
authorFengguang Wu <fengguang.wu@intel.com>
Fri, 24 Aug 2012 15:27:35 +0000 (23:27 +0800)
committerJames Bottomley <JBottomley@Parallels.com>
Mon, 24 Sep 2012 08:10:58 +0000 (12:10 +0400)
commit13fce495add4d345666d0416491f2483d38d70aa
tree4143ed26e37fe135106926aa6330026ede39cabc
parentd320bbeec15d3790e3cdfcd9cf246884d3a7ea48
[SCSI] megaraid_sas: combine kmalloc+memset into kzalloc

Use kzalloc rather than kmalloc followed by memset with 0.

Generated by: scripts/coccinelle/api/alloc/kzalloc-simple.cocci

Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
Acked-by: Adam Radford <aradford@gmail.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/megaraid/megaraid_sas_fusion.c