Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Liu Song and committed by
Jens Axboe
33b6debd 80e27684

-1
-1
drivers/nvme/host/pci.c
··· 670 670 671 671 prp_list = dma_pool_alloc(pool, GFP_ATOMIC, &prp_dma); 672 672 if (!prp_list) { 673 - iod->first_dma = dma_addr; 674 673 iod->npages = -1; 675 674 return BLK_STS_RESOURCE; 676 675 }