summaryrefslogtreecommitdiffstats
path: root/drivers/scsi
diff options
context:
space:
mode:
authorWei Yongjun <weiyongjun1@huawei.com>2018-05-26 11:34:22 +0200
committerMartin K. Petersen <martin.petersen@oracle.com>2018-05-29 03:36:51 +0200
commiteb217359ebeae7b9ac51045d50f7a516925bc5c2 (patch)
tree3e953bfda8eb46a40b8aa9a9b1a7f88c127af026 /drivers/scsi
parentscsi: target: fix spelling mistake "Uknown" -> "Unknown" (diff)
downloadlinux-eb217359ebeae7b9ac51045d50f7a516925bc5c2.tar.xz
linux-eb217359ebeae7b9ac51045d50f7a516925bc5c2.zip
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 <weiyongjun1@huawei.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi')
-rw-r--r--drivers/scsi/hisi_sas/hisi_sas_main.c2
1 files changed, 1 insertions, 1 deletions
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;
}