]> www.infradead.org Git - nvme.git/commit
nvme: change return type of nvme_poll_cq() to bool
authorYongsoo Joo <ysjoo@kookmin.ac.kr>
Mon, 23 Dec 2024 01:05:17 +0000 (01:05 +0000)
committerKeith Busch <kbusch@kernel.org>
Sat, 11 Jan 2025 03:30:46 +0000 (19:30 -0800)
commit002bb02729dc7f5a9b356e98e672262ca432b861
treee3c429c9420a668e24edec7891c7e8d551e790df
parentac32057acc7f3d7a238dafaa9b2aa2bc9750080e
nvme: change return type of nvme_poll_cq() to bool

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.

Signed-off-by: Yongsoo Joo <ysjoo@kookmin.ac.kr>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Keith Busch <kbusch@kernel.org>
drivers/nvme/host/pci.c