Skip to contentSkip to conversation

mtd: nand: atmel_nand: remove build warning in atmel_nand_remove()

PATCH New Greg Kroah-Hartman 1 participant 1 message Sep 3, 2021

Subsystems (4)
lore
Share & tools
lore

Greg Kroah-Hartman

author maintainer
#0 lore raw

PATCH 1/1 mtd: nand: atmel_nand: remove build warning in atmel_nand_remove()

In the 4.9.y tree, the following build warning keeps showing up:

drivers/mtd/nand/atmel_nand.c:2337:19: warning: unused variable 'mtd' [-Wunused-variable]

This driver was deleted / restructured in newer kernels so this is a 4.9.y patch only.

Cc Wenyou Yang <[email protected]>
Cc Josh Wu <[email protected]>
Cc Boris Brezillon <[email protected]>
Cc Richard Weinberger <[email protected]>
Cc David Woodhouse <[email protected]>
Cc Brian Norris <[email protected]>
Cc Marek Vasut <[email protected]>
Cc Cyrille Pitchen <[email protected]>
---
 drivers/mtd/nand/atmel_nand.c | 1 -
 1 file changed, 1 deletion(-)
drivers/mtd/nand/atmel_nand.c +0 -1
index 45495bc1a70e..bcae07e60574 100644
@@ -2334,7 +2334,6 @@ static int atmel_nand_probe(struct platform_device *pdev)
 static int atmel_nand_remove(struct platform_device *pdev)
 {
 	struct atmel_nand_host *host = platform_get_drvdata(pdev);
-	struct mtd_info *mtd = nand_to_mtd(&host->nand_chip);
 
 	nand_release(&host->nand_chip);
 
Signature · 1 line
2.33.0