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:
parent
c167828088
commit
eb217359eb
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue