mtd: orion_nand: Fix build failure caused by typo

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Wed Feb 10 13:59:02 EST 2010


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=2d6bfc261a02662ec7a3a78df3e05e453e8b168d
Commit:     2d6bfc261a02662ec7a3a78df3e05e453e8b168d
Parent:     7603757993e7ce3e63b2280ccf61d8058b7b2414
Author:     Peter Huewe <peterhuewe at gmx.de>
AuthorDate: Thu Jan 7 02:51:13 2010 +0100
Committer:  David Woodhouse <David.Woodhouse at intel.com>
CommitDate: Wed Feb 10 18:14:39 2010 +0000

    mtd: orion_nand: Fix build failure caused by typo
    
    Commit e99030609e27abff7e1a868cb56384c678b09984 ("mtd: orion_nand.c: add
    error handling and use resource_size()") introduced a build error -- it
    assigns something to a undeclared variable 'err', whereas the rest of
    the code uses 'ret' for this task.
    
    This patch fixes this typo and thus removes the build failure.
    
    Signed-off-by: Peter Huewe <peterhuewe at gmx.de>
    Reviewed-by: H Hartley Sweeten <hsweeten at visionengravers.com>
    Acked-by: Uwe Kleine-König <u.kleine-koenig at pengutronix.de>
    Signed-off-by: David Woodhouse <David.Woodhouse at intel.com>
    Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
---
 drivers/mtd/nand/orion_nand.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/mtd/nand/orion_nand.c b/drivers/mtd/nand/orion_nand.c
index 9903460..f16050c 100644
--- a/drivers/mtd/nand/orion_nand.c
+++ b/drivers/mtd/nand/orion_nand.c
@@ -92,7 +92,7 @@ static int __init orion_nand_probe(struct platform_device *pdev)
 
 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
 	if (!res) {
-		err = -ENODEV;
+		ret = -ENODEV;
 		goto no_res;
 	}
 



More information about the linux-mtd-cvs mailing list