diff mbox series

[RFC,5/8] lightnvm: fix variable type pblk-core

Message ID 20210520062255.4908-6-chaitanya.kulkarni@wdc.com (mailing list archive)
State New, archived
Headers show
Series block: fix bio_add_XXX_page() return type | expand

Commit Message

Chaitanya Kulkarni May 20, 2021, 6:22 a.m. UTC
Make variable ret unsigned int since bio_add_pc_page() now returns
unsigned int.

Signed-off-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
---
 drivers/lightnvm/pblk-core.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/drivers/lightnvm/pblk-core.c b/drivers/lightnvm/pblk-core.c
index 33d39d3dd343..cf148cee99a1 100644
--- a/drivers/lightnvm/pblk-core.c
+++ b/drivers/lightnvm/pblk-core.c
@@ -341,7 +341,8 @@  int pblk_bio_add_pages(struct pblk *pblk, struct bio *bio, gfp_t flags,
 {
 	struct request_queue *q = pblk->dev->q;
 	struct page *page;
-	int i, ret;
+	unsigned int ret;
+	int i;
 
 	for (i = 0; i < nr_pages; i++) {
 		page = mempool_alloc(&pblk->page_bio_pool, flags);