diff options
author | Liu Song <[email protected]> | 2022-07-16 19:49:41 +0800 |
---|---|---|
committer | Jens Axboe <[email protected]> | 2022-08-02 17:22:48 -0600 |
commit | 33b6debd6128f28e21b916d1ec551683fd16e088 (patch) | |
tree | b1021098dcd1b57d41549ce32cd43b903971760e | |
parent | 80e2768496a494ce3166f8358d8665d2a056bcb7 (diff) |
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 <[email protected]>
Signed-off-by: Christoph Hellwig <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
-rw-r--r-- | drivers/nvme/host/pci.c | 1 |
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; } |