Commit eb217359 authored by Wei Yongjun's avatar Wei Yongjun Committed by Martin K. Petersen

scsi: hisi_sas: fix a typo in hisi_sas_task_prep()

Fix a typo in hisi_sas_task_prep().

Fixes: 7eee4b92 ("scsi: hisi_sas: relocate smp sg map")
Signed-off-by: default avatarWei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent c1678280
...@@ -390,7 +390,7 @@ static int hisi_sas_task_prep(struct sas_task *task, ...@@ -390,7 +390,7 @@ static int hisi_sas_task_prep(struct sas_task *task,
} }
n_elem_resp = dma_map_sg(dev, &task->smp_task.smp_resp, n_elem_resp = dma_map_sg(dev, &task->smp_task.smp_resp,
1, DMA_FROM_DEVICE); 1, DMA_FROM_DEVICE);
if (!n_elem_req) { if (!n_elem_resp) {
rc = -ENOMEM; rc = -ENOMEM;
goto err_out_dma_unmap; goto err_out_dma_unmap;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment