]> git.karo-electronics.de Git - karo-tx-linux.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, 17 Sep 2012 13:28:56 +0000 (14:28 +0100)
commit2dc9bb7cf8e135f90d7c1688f53efdf4f911a1a5
tree49132c9b92ce21d9af1bbc8ba93dd98f15d2cba2
parent9fbb4144e5cf536d3b969f6b76680a19ab2d3460
[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