nvme-pci: remove useless assignment in nvme_pci_setup_prps
PATCH 1/1 nvme-pci: remove useless assignment in nvme_pci_setup_prps
From: Liu Song <[email protected]>
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]>
--- drivers/nvme/host/pci.c | 1 - 1 file changed, 1 deletion(-)
drivers/nvme/host/pci.c +0 -1
@@ -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 ; }
Signature · 1 line
1.8.3.1
Thanks,
applied to nvme-5.20.