mtd: rawnand: oxnas: cleanup/simplify code
Subsystems (2)
PATCH 1/1 mtd: rawnand: oxnas: cleanup/simplify code
Simplify oxnas_nand_probe.
Signed-off-by Pavel Machek (CIP) <[email protected]>
drivers/mtd/nand/raw/oxnas_nand.c +1 -2
@@ -144,8 +144,7 @@ static int oxnas_nand_probe(struct platform_device *pdev)if (err) goto err_cleanup_nand; - oxnas->chips[oxnas->nchips] = chip; - ++oxnas->nchips; + oxnas->chips[oxnas->nchips++] = chip; }/* Exit if no chips found */
Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
Quoted 10 lines · Pavel Machek
Simplify
oxnas_nand_probe.Signed-off-by Pavel Machek (CIP) <[email protected]>drivers/mtd/nand/raw/oxnas_nand.c +0
-0
drivers/mtd/nand/raw/oxnas_nand.c static int oxnas_nand_probe(struct platform_device *pdev) · line 150
Quoted 9 lines
drivers/mtd/nand/raw/oxnas_nand.c +1
-2@@ -144,8 +144,7 @@ static int oxnas_nand_probe(struct platform_device *pdev)if (err) goto err_cleanup_nand; - oxnas->chips[oxnas->nchips] = chip; - ++oxnas->nchips; + oxnas->chips[oxnas->nchips++] = chip; }/* Exit if no chips found */
Acked-by Neil Armstrong <[email protected]>
Quoted 4 lines · Pavel Machek
Simplify
oxnas_nand_probe.Signed-off-by Pavel Machek (CIP) <[email protected]>Acked-by Neil Armstrong <[email protected]>
Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git nand/next, thanks.
Miquel