]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2b7409f9d7ffd33f4b1fd286681061387c32818d
treeb1021098dcd1b57d41549ce32cd43b903971760e
parent0273d09b2dfe00d3d7e3cb5b84acab76c272982c
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