Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a5036778 authored by Li Zefan's avatar Li Zefan Committed by David Woodhouse
Browse files

[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: default avatarLi Zefan <lizf@cn.fujitsu.com>
Signed-off-by: default avatarDavid Woodhouse <dwmw2@infradead.org>
parent b7e23d91
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -110,7 +110,9 @@ out:
static int __devexit plat_nand_remove(struct platform_device *pdev)
{
	struct plat_nand_data *data = platform_get_drvdata(pdev);
#ifdef CONFIG_MTD_PARTITIONS
	struct platform_nand_data *pdata = pdev->dev.platform_data;
#endif

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