[PATCH v2] nvme: change the return type of nvme_poll()

Yongsoo Joo ysjoo at kookmin.ac.kr
Mon Dec 9 05:33:44 PST 2024


Change the return type of nvme_poll() to bool to reflect its boolean
return value.

Signed-off-by: Yongsoo Joo <ysjoo at kookmin.ac.kr>
---
Changes from v1 to v2:
- Changed the return type of nvme_poll() from int to bool, rather than
  modifying the internal return variable from bool to int (Christoph
  Hellwig).
- Updated the patch subject by replacing "fix" with "change" (Keith 
  Busch).

 drivers/nvme/host/pci.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/nvme/host/pci.c b/drivers/nvme/host/pci.c
index 1a5ba80f1811..34650c03c120 100644
--- a/drivers/nvme/host/pci.c
+++ b/drivers/nvme/host/pci.c
@@ -1206,7 +1206,7 @@ static void nvme_poll_irqdisable(struct nvme_queue *nvmeq)
 	enable_irq(pci_irq_vector(pdev, nvmeq->cq_vector));
 }
 
-static int nvme_poll(struct blk_mq_hw_ctx *hctx, struct io_comp_batch *iob)
+static bool nvme_poll(struct blk_mq_hw_ctx *hctx, struct io_comp_batch *iob)
 {
 	struct nvme_queue *nvmeq = hctx->driver_data;
 	bool found;
-- 
2.34.1


-- 




More information about the Linux-nvme mailing list