From eb217359ebeae7b9ac51045d50f7a516925bc5c2 Mon Sep 17 00:00:00 2001 From: Wei Yongjun Date: Sat, 26 May 2018 09:34:22 +0000 Subject: scsi: hisi_sas: fix a typo in hisi_sas_task_prep() Fix a typo in hisi_sas_task_prep(). Fixes: 7eee4b921822 ("scsi: hisi_sas: relocate smp sg map") Signed-off-by: Wei Yongjun Signed-off-by: Martin K. Petersen --- drivers/scsi/hisi_sas/hisi_sas_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drivers/scsi') diff --git a/drivers/scsi/hisi_sas/hisi_sas_main.c b/drivers/scsi/hisi_sas/hisi_sas_main.c index 39f694eb7b00..6d3796553272 100644 --- a/drivers/scsi/hisi_sas/hisi_sas_main.c +++ b/drivers/scsi/hisi_sas/hisi_sas_main.c @@ -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; } -- cgit v1.2.3