Commit 552a028f authored by Pavel Machek's avatar Pavel Machek Committed by Jiri Kosina

mtd: rawnand: oxnas: cleanup/simplify code

Simplify oxnas_nand_probe.
Signed-off-by: default avatarPavel Machek (CIP) <pavel@denx.de>
Acked-by: default avatarNeil Armstrong <narmstrong@baylibre.com>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
parent cae1d5a2
...@@ -144,8 +144,7 @@ static int oxnas_nand_probe(struct platform_device *pdev) ...@@ -144,8 +144,7 @@ static int oxnas_nand_probe(struct platform_device *pdev)
if (err) if (err)
goto err_cleanup_nand; goto err_cleanup_nand;
oxnas->chips[oxnas->nchips] = chip; oxnas->chips[oxnas->nchips++] = chip;
++oxnas->nchips;
} }
/* Exit if no chips found */ /* Exit if no chips found */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment