[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20220725112108.686347-1-gongruiqi1@huawei.com>
Date: Mon, 25 Jul 2022 19:21:07 +0800
From: "GONG, Ruiqi" <gongruiqi1@...wei.com>
To: Miquel Raynal <miquel.raynal@...tlin.com>,
Naga Sureshkumar Relli <nagasure@...inx.com>,
Richard Weinberger <richard@....at>,
"Vignesh Raghavendra" <vigneshr@...com>
CC: <linux-mtd@...ts.infradead.org>, <linux-kernel@...r.kernel.org>,
"Wang Weiyang" <wangweiyang2@...wei.com>,
GONG Ruiqi <gongruiqi1@...wei.com>
Subject: [PATCH] mtd: rawnand: arasan: stop using 0 as NULL pointer
Fix the following sparse warnings:
drivers/mtd/nand/raw/arasan-nand-controller.c:918:70: warning: Using plain integer as NULL pointer
drivers/mtd/nand/raw/arasan-nand-controller.c:918:73: warning: Using plain integer as NULL pointer
Signed-off-by: GONG, Ruiqi <gongruiqi1@...wei.com>
---
drivers/mtd/nand/raw/arasan-nand-controller.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/mtd/nand/raw/arasan-nand-controller.c b/drivers/mtd/nand/raw/arasan-nand-controller.c
index 296fb16c8dc3..ec7e6eeac55f 100644
--- a/drivers/mtd/nand/raw/arasan-nand-controller.c
+++ b/drivers/mtd/nand/raw/arasan-nand-controller.c
@@ -915,7 +915,7 @@ static int anfc_check_op(struct nand_chip *chip,
if (instr->ctx.data.len > ANFC_MAX_CHUNK_SIZE)
return -ENOTSUPP;
- if (anfc_pkt_len_config(instr->ctx.data.len, 0, 0))
+ if (anfc_pkt_len_config(instr->ctx.data.len, NULL, NULL))
return -ENOTSUPP;
break;
--
2.25.1
Powered by blists - more mailing lists