summaryrefslogtreecommitdiff
path: root/drivers/nvme
diff options
context:
space:
mode:
authorLiu Song <liusong@linux.alibaba.com>2022-07-16 14:49:41 +0300
committerJens Axboe <axboe@kernel.dk>2022-08-03 02:22:48 +0300
commit33b6debd6128f28e21b916d1ec551683fd16e088 (patch)
treeb1021098dcd1b57d41549ce32cd43b903971760e /drivers/nvme
parent80e2768496a494ce3166f8358d8665d2a056bcb7 (diff)
downloadlinux-33b6debd6128f28e21b916d1ec551683fd16e088.tar.xz
nvme-pci: remove useless assignment in nvme_pci_setup_prps
If prp_list is NULL, nvme_unmap_sg will be performed, and the assignment to first_dma is meaningless, so remove it. Signed-off-by: Liu Song <liusong@linux.alibaba.com> Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/nvme')
-rw-r--r--drivers/nvme/host/pci.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/nvme/host/pci.c b/drivers/nvme/host/pci.c
index d8d0aeb6fa0a..36b8c0e2bb7c 100644
--- a/drivers/nvme/host/pci.c
+++ b/drivers/nvme/host/pci.c
@@ -670,7 +670,6 @@ static blk_status_t nvme_pci_setup_prps(struct nvme_dev *dev,
prp_list = dma_pool_alloc(pool, GFP_ATOMIC, &prp_dma);
if (!prp_list) {
- iod->first_dma = dma_addr;
iod->npages = -1;
return BLK_STS_RESOURCE;
}