Skip to content

Commit ccc49ef

Browse files
bbrezillonmiquelraynal
authored andcommitted
mtd: rawnand: fsl_upm: Remove unused mtd var
The mtd var in fun_wait_rnb() is now unused, let's get rid of it and fix the warning resulting from this unused var. Fixes: 50a487e ("mtd: rawnand: Pass a nand_chip object to chip->dev_ready()") Signed-off-by: Boris Brezillon <[email protected]> Reviewed-by: Miquel Raynal <[email protected]> Signed-off-by: Miquel Raynal <[email protected]> Link: https://lore.kernel.org/linux-mtd/[email protected]
1 parent 35b6bcc commit ccc49ef

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/mtd/nand/raw/fsl_upm.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ static int fun_chip_ready(struct nand_chip *chip)
6262
static void fun_wait_rnb(struct fsl_upm_nand *fun)
6363
{
6464
if (fun->rnb_gpio[fun->mchip_number] >= 0) {
65-
struct mtd_info *mtd = nand_to_mtd(&fun->chip);
6665
int cnt = 1000000;
6766

6867
while (--cnt && !fun_chip_ready(&fun->chip))

0 commit comments

Comments
 (0)