Skip to content

Commit 552a028

Browse files
pavelmachekJiri Kosina
authored andcommitted
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>
1 parent cae1d5a commit 552a028

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

drivers/mtd/nand/raw/oxnas_nand.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,7 @@ static int oxnas_nand_probe(struct platform_device *pdev)
144144
if (err)
145145
goto err_cleanup_nand;
146146

147-
oxnas->chips[oxnas->nchips] = chip;
148-
++oxnas->nchips;
147+
oxnas->chips[oxnas->nchips++] = chip;
149148
}
150149

151150
/* Exit if no chips found */

0 commit comments

Comments
 (0)