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: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20200724083825.GA31437@amd
This commit is contained in:
Pavel Machek 2020-07-24 10:38:25 +02:00 committed by Miquel Raynal
parent 75b049bb7f
commit d43511d05c
1 changed files with 1 additions and 2 deletions

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