projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
75b049b
)
mtd: rawnand: oxnas: cleanup/simplify code
author
Pavel Machek
<pavel@ucw.cz>
Fri, 24 Jul 2020 08:38:25 +0000
(10:38 +0200)
committer
Miquel Raynal
<miquel.raynal@bootlin.com>
Wed, 30 Sep 2020 14:44:16 +0000
(16:44 +0200)
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
drivers/mtd/nand/raw/oxnas_nand.c
patch
|
blob
|
history
diff --git
a/drivers/mtd/nand/raw/oxnas_nand.c
b/drivers/mtd/nand/raw/oxnas_nand.c
index
8d0d76a
..
f449470
100644
(file)
--- a/
drivers/mtd/nand/raw/oxnas_nand.c
+++ b/
drivers/mtd/nand/raw/oxnas_nand.c
@@
-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 */