scsi: hisi_sas: fix a typo in hisi_sas_task_prep()

Fix a typo in hisi_sas_task_prep().

Fixes: 7eee4b9218 ("scsi: hisi_sas: relocate smp sg map")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
Wei Yongjun 2018-05-26 09:34:22 +00:00 committed by Martin K. Petersen
parent c167828088
commit eb217359eb
1 changed files with 1 additions and 1 deletions

View File

@ -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,
1, DMA_FROM_DEVICE);
if (!n_elem_req) {
if (!n_elem_resp) {
rc = -ENOMEM;
goto err_out_dma_unmap;
}