OSDN Git Service

nvme-pci: remove SGL segment descriptors
authorKeith Busch <kbusch@kernel.org>
Thu, 5 Jan 2023 20:28:30 +0000 (12:28 -0800)
committerChristoph Hellwig <hch@lst.de>
Wed, 1 Feb 2023 13:21:59 +0000 (14:21 +0100)
commit01df742d8c5c070f92fa9c046907506a2a0f7a9f
tree4cee7b2c8aceb88860a70c79fa4704c4ad748ff0
parentb0ef1b11d3909d8f246dd3af9c94e38880d349b0
nvme-pci: remove SGL segment descriptors

The max segments this driver can see is 127, well below the 256
threshold needed to add an nvme sgl segment descriptor. Remove all the
useless checks and dead code.

Signed-off-by: Keith Busch <kbusch@kernel.org>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/pci.c