mirror of https://gitee.com/openkylin/linux.git
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:
parent
75b049bb7f
commit
d43511d05c
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue