projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b0f9408
)
scsi: megaraid: Use dma_pool_zalloc()
author
Souptick Joarder
<
[email protected]
>
Thu, 15 Feb 2018 16:25:06 +0000
(21:55 +0530)
committer
Martin K. Petersen
<
[email protected]
>
Wed, 7 Mar 2018 02:14:01 +0000
(21:14 -0500)
Use dma_pool_zalloc() instead of dma_pool_alloc + memset
Signed-off-by: Souptick Joarder <
[email protected]
>
Acked-by: Sumit Saxena <
[email protected]
>
Signed-off-by: Martin K. Petersen <
[email protected]
>
drivers/scsi/megaraid/megaraid_sas_base.c
patch
|
blob
|
history
diff --git
a/drivers/scsi/megaraid/megaraid_sas_base.c
b/drivers/scsi/megaraid/megaraid_sas_base.c
index a71ee67df0847721a98b2a2504a6a41f7e68bd44..905ea36da646e045ea241b2a264700850f9fff67 100644
(file)
--- a/
drivers/scsi/megaraid/megaraid_sas_base.c
+++ b/
drivers/scsi/megaraid/megaraid_sas_base.c
@@
-4022,7
+4022,7
@@
static int megasas_create_frame_pool(struct megasas_instance *instance)
cmd = instance->cmd_list[i];
- cmd->frame = dma_pool_alloc(instance->frame_dma_pool,
+ cmd->frame = dma_pool_
z
alloc(instance->frame_dma_pool,
GFP_KERNEL, &cmd->frame_phys_addr);
cmd->sense = dma_pool_alloc(instance->sense_dma_pool,
@@
-4038,7
+4038,6
@@
static int megasas_create_frame_pool(struct megasas_instance *instance)
return -ENOMEM;
}
- memset(cmd->frame, 0, instance->mfi_frame_size);
cmd->frame->io.context = cpu_to_le32(cmd->index);
cmd->frame->io.pad_0 = 0;
if ((instance->adapter_type == MFI_SERIES) && reset_devices)