]> www.infradead.org Git - users/hch/misc.git/commit
nvme-pci: merge the simple PRP and SGL setup into a common helper
authorChristoph Hellwig <hch@lst.de>
Tue, 17 Jun 2025 05:19:41 +0000 (07:19 +0200)
committerChristoph Hellwig <hch@lst.de>
Tue, 17 Jun 2025 05:26:54 +0000 (07:26 +0200)
commit89e0170eaa06431d6c1dcc52b40cba4827862275
treeb7c1ec651495cec110c9e30795ea9018ddbd0f3e
parenta57cce888a3ae6110c9136062e7d0948c28e9cf0
nvme-pci: merge the simple PRP and SGL setup into a common helper

nvme_setup_prp_simple and nvme_setup_sgl_simple share a lot of logic.
Merge them into a single helper that makes use of the previously added
use_sgl tristate.

Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/pci.c