nvme: set max_hw_sectors unconditionally
authorChristoph Hellwig <hch@lst.de>
Mon, 4 Mar 2024 14:04:45 +0000 (07:04 -0700)
committerKeith Busch <kbusch@kernel.org>
Mon, 4 Mar 2024 16:24:55 +0000 (08:24 -0800)
commit152694c82950a0930533dbe972b1f4fc11b95e98
treea81bd5801da92fa604fa647a0d91bdd6fdf513a9
parent4999568184e5d68903e6d0e49609979cd6ef01d7
nvme: set max_hw_sectors unconditionally

All transports set a max_hw_sectors value in the nvme_ctrl, so make
the code using it unconditional and clean it up using a little helper.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Max Gurtovoy <mgurtovoy@nvidia.com>
Reviewed-by: John Garry <john.g.garry@oracle.com>
Signed-off-by: Keith Busch <kbusch@kernel.org>
drivers/nvme/host/core.c