Tag: 7731e6bb312ec8bb7892c465401dbc7119aea785

[SCSI] megaraid_sas: combine kmalloc+memset into kzalloc

Author: Fengguang Wu <fengguang.wu@intel.com> Use kzalloc rather than kmalloc followed by memset with 0. Generated by: scripts/coccinelle/api/alloc/kzalloc-simple.cocci Signed-off-by: Fengguang Wu Acked-by: Adam Radford Signed-off-by: James Bottomley — drivers/scsi/megaraid/megaraid_sas_fusion.c | 7 ++—– 1 file changed, 2 insertions(+), 5 deletions(-)   diff –git a/drivers/scsi/megaraid/megaraid_sas_fusion.c b/drivers/scsi/megaraid/megaraid_sas_fusion.c index 788115b..ddf094e 100644 — a/drivers/scsi/megaraid/megaraid_sas_fusion.c +++ b/drivers/scsi/megaraid/megaraid_sas_fusion.c @@ -462,8 +462,8 @@ megasas_alloc_cmds_fusion(struct …

Continue reading