mtd: rawnand: oxnas: cleanup/simplify code

Simplify oxnas_nand_probe.

Signed-off-by: Pavel Machek (CIP) <pavel@denx.de>
Acked-by: Neil Armstrong <narmstrong@baylibre.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
This commit is contained in:
Pavel Machek 2020-07-24 10:38:25 +02:00 committed by Jiri Kosina
parent cae1d5a2c5
commit 552a028f6d

View file

@ -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 */