[PATCH v3] nvme: change return type of nvme_poll_cq() to bool

Keith Busch kbusch at kernel.org
Tue Jan 7 08:48:21 PST 2025


On Mon, Dec 23, 2024 at 01:05:17AM +0000, Yongsoo Joo wrote:
> The nvme_poll_cq() function currently returns the number of CQEs
> found, However, only one caller, nvme_poll(), requires a boolean
> value to check whether any CQE was completed. The other callers do
> not use the return value at all.
> 
> To better reflect its usage, update the return type of nvme_poll_cq()
> from int to bool.

Thanks, applied to nvme-6.14.



More information about the Linux-nvme mailing list