[PATCH] nvme: multipath: fix return value of nvme_available_path

Christoph Hellwig hch at lst.de
Mon Apr 7 07:34:40 PDT 2025


On Fri, Apr 04, 2025 at 02:06:43PM -0600, Uday Shankar wrote:
> The function returns bool so we should return false, not NULL. No
> functional changes are expected.

Thanks,

applied to nvme-6.15.

I'm a bit surprised this didn't generate a sparse warning similar to
when 0 is used in pointer context, but I guess that is because of the
implicit conversion of boolean expressions to the bool type.




More information about the Linux-nvme mailing list