Skip to content

Commit a503677

Browse files
Li Zefandwmw2
authored andcommitted
[MTD] [NAND] Remove unused variable in plat_nand_remove
With CONFIG_MTD_PARTITIONS not set, got this: drivers/mtd/nand/plat_nand.c:113: warning: unused variable 'pdata' Signed-off-by: Li Zefan <lizf@cn.fujitsu.com> Signed-off-by: David Woodhouse <dwmw2@infradead.org>
1 parent b7e23d9 commit a503677

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎drivers/mtd/nand/plat_nand.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,9 @@ static int __init plat_nand_probe(struct platform_device *pdev)
110110
static int __devexit plat_nand_remove(struct platform_device *pdev)
111111
{
112112
struct plat_nand_data *data = platform_get_drvdata(pdev);
113+
#ifdef CONFIG_MTD_PARTITIONS
113114
struct platform_nand_data *pdata = pdev->dev.platform_data;
115+
#endif
114116

115117
nand_release(&data->mtd);
116118
#ifdef CONFIG_MTD_PARTITIONS

0 commit comments

Comments
 (0)