nvme-pci: remove useless assignment in nvme_pci_setup_prps
authorLiu Song <liusong@linux.alibaba.com>
Sat, 16 Jul 2022 11:49:41 +0000 (19:49 +0800)
committerJens Axboe <axboe@kernel.dk>
Tue, 2 Aug 2022 23:22:48 +0000 (17:22 -0600)
commit33b6debd6128f28e21b916d1ec551683fd16e088
treeb1021098dcd1b57d41549ce32cd43b903971760e
parent80e2768496a494ce3166f8358d8665d2a056bcb7
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>
drivers/nvme/host/pci.c