2010-06-14 07:02:06

by Uwe Kleine-König

[permalink] [raw]
Subject: [PATCH] mtd/mxc_nand: remove unused variable

This fixes:

drivers/mtd/nand/mxc_nand.c: In function 'mxcnd_resume':
drivers/mtd/nand/mxc_nand.c:901: warning: unused variable 'host'

Removing this variable was missed in 9c14b153e6af.

Signed-off-by: Uwe Kleine-König <[email protected]>
---
drivers/mtd/nand/mxc_nand.c | 1 -
1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/drivers/mtd/nand/mxc_nand.c b/drivers/mtd/nand/mxc_nand.c
index 0d76b16..ef610bf 100644
--- a/drivers/mtd/nand/mxc_nand.c
+++ b/drivers/mtd/nand/mxc_nand.c
@@ -898,7 +898,6 @@ static int mxcnd_resume(struct platform_device *pdev)
{
struct mtd_info *mtd = platform_get_drvdata(pdev);
struct nand_chip *nand_chip = mtd->priv;
- struct mxc_nand_host *host = nand_chip->priv;
int ret = 0;

DEBUG(MTD_DEBUG_LEVEL0, "MXC_ND : NAND resume\n");
--
1.7.1


2010-06-14 08:36:05

by Uwe Kleine-König

[permalink] [raw]
Subject: Re: [PATCH] mtd/mxc_nand: remove unused variable

On Mon, Jun 14, 2010 at 09:01:51AM +0200, Uwe Kleine-K?nig wrote:
> This fixes:
>
> drivers/mtd/nand/mxc_nand.c: In function 'mxcnd_resume':
> drivers/mtd/nand/mxc_nand.c:901: warning: unused variable 'host'
>
> Removing this variable was missed in 9c14b153e6af.
>
> Signed-off-by: Uwe Kleine-K?nig <[email protected]>
This conflicts with Eric's "mxc_nand: fix PM" patch which also solves
this issue.

Best regards
Uwe

--
Pengutronix e.K. | Uwe Kleine-K?nig |
Industrial Linux Solutions | http://www.pengutronix.de/ |

2010-07-01 03:47:09

by Artem Bityutskiy

[permalink] [raw]
Subject: Re: [PATCH] mtd/mxc_nand: remove unused variable

On Mon, 2010-06-14 at 09:01 +0200, Uwe Kleine-König wrote:
> This fixes:
>
> drivers/mtd/nand/mxc_nand.c: In function 'mxcnd_resume':
> drivers/mtd/nand/mxc_nand.c:901: warning: unused variable 'host'
>
> Removing this variable was missed in 9c14b153e6af.
>
> Signed-off-by: Uwe Kleine-König <[email protected]>

Pushed to l2-mtd-2.6.git / master

--
Best Regards,
Artem Bityutskiy (Артём Битюцкий)