]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
nvme-core: use nvme_is_io_ctrl() for I/O controller check
authorMartin George <martinus.gpy@gmail.com>
Mon, 22 Sep 2025 12:05:32 +0000 (17:35 +0530)
committerKeith Busch <kbusch@kernel.org>
Tue, 23 Sep 2025 22:38:28 +0000 (15:38 -0700)
commit80e653fab6676fdcdfe2710cab5fc4312ac47edd
tree18d60d53f880a7ee8da9ec35075d770ccc5af38b
parentf7e9a615302fec524445da213745609a06b9914d
nvme-core: use nvme_is_io_ctrl() for I/O controller check

Replace the current I/O controller check in
nvme_init_non_mdts_limits() with the helper nvme_is_io_ctrl()
function to maintain consistency with similar checks in other
parts of the code and improve code readability.

Signed-off-by: Martin George <marting@netapp.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Keith Busch <kbusch@kernel.org>
drivers/nvme/host/core.c