mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
scsi: mvsas: Use dma_pool_zalloc
Replace dma_pool_alloc + memset with dma_pool_zalloc. Signed-off-by: Sabyasachi Gupta <[email protected]> Reviewed-by: Jack Wang <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
This commit is contained in:
parent
6110f37fb3
commit
1b171b1a29
1 changed files with 1 additions and 2 deletions
|
|
@ -790,12 +790,11 @@ static int mvs_task_prep(struct sas_task *task, struct mvs_info *mvi, int is_tmf
|
|||
slot->n_elem = n_elem;
|
||||
slot->slot_tag = tag;
|
||||
|
||||
slot->buf = dma_pool_alloc(mvi->dma_pool, GFP_ATOMIC, &slot->buf_dma);
|
||||
slot->buf = dma_pool_zalloc(mvi->dma_pool, GFP_ATOMIC, &slot->buf_dma);
|
||||
if (!slot->buf) {
|
||||
rc = -ENOMEM;
|
||||
goto err_out_tag;
|
||||
}
|
||||
memset(slot->buf, 0, MVS_SLOT_BUF_SZ);
|
||||
|
||||
tei.task = task;
|
||||
tei.hdr = &mvi->slot[tag];
|
||||
|
|
|
|||
Loading…
Reference in a new issue