* [PATCH] mtd: rawnand: oxnas: cleanup/simplify code
@ 2020-07-24 8:38 Pavel Machek
2020-07-24 10:01 ` Neil Armstrong
2020-09-07 7:22 ` Miquel Raynal
0 siblings, 2 replies; 3+ messages in thread
From: Pavel Machek @ 2020-07-24 8:38 UTC (permalink / raw)
To: trivial, miquel.raynal, richard, vigneshr, narmstrong,
nishkadg.linux, linux-mtd, linux-arm-kernel, linux-oxnas,
linux-kernel
[-- Attachment #1.1: Type: text/plain, Size: 697 bytes --]
Simplify oxnas_nand_probe.
Signed-off-by: Pavel Machek (CIP) <pavel@denx.de>
diff --git a/drivers/mtd/nand/raw/oxnas_nand.c b/drivers/mtd/nand/raw/oxnas_nand.c
index 8d0d76ad319d..f44947043e5a 100644
--- 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 */
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 181 bytes --]
[-- Attachment #2: Type: text/plain, Size: 144 bytes --]
______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] mtd: rawnand: oxnas: cleanup/simplify code
2020-07-24 8:38 [PATCH] mtd: rawnand: oxnas: cleanup/simplify code Pavel Machek
@ 2020-07-24 10:01 ` Neil Armstrong
2020-09-07 7:22 ` Miquel Raynal
1 sibling, 0 replies; 3+ messages in thread
From: Neil Armstrong @ 2020-07-24 10:01 UTC (permalink / raw)
To: Pavel Machek, trivial, miquel.raynal, richard, vigneshr,
nishkadg.linux, linux-mtd, linux-arm-kernel, linux-oxnas,
linux-kernel
[-- Attachment #1.1.1: Type: text/plain, Size: 694 bytes --]
On 24/07/2020 10:38, Pavel Machek wrote:
> Simplify oxnas_nand_probe.
>
> Signed-off-by: Pavel Machek (CIP) <pavel@denx.de>
>
> diff --git a/drivers/mtd/nand/raw/oxnas_nand.c b/drivers/mtd/nand/raw/oxnas_nand.c
> index 8d0d76ad319d..f44947043e5a 100644
> --- 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 */
>
Acked-by: Neil Armstrong <narmstrong@baylibre.com>
[-- Attachment #1.2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
[-- Attachment #2: Type: text/plain, Size: 144 bytes --]
______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] mtd: rawnand: oxnas: cleanup/simplify code
2020-07-24 8:38 [PATCH] mtd: rawnand: oxnas: cleanup/simplify code Pavel Machek
2020-07-24 10:01 ` Neil Armstrong
@ 2020-09-07 7:22 ` Miquel Raynal
1 sibling, 0 replies; 3+ messages in thread
From: Miquel Raynal @ 2020-09-07 7:22 UTC (permalink / raw)
To: Pavel Machek, trivial, miquel.raynal, richard, vigneshr,
narmstrong, nishkadg.linux, linux-mtd, linux-arm-kernel,
linux-oxnas, linux-kernel
On Fri, 2020-07-24 at 08:38:25 UTC, Pavel Machek wrote:
> Simplify oxnas_nand_probe.
>
> Signed-off-by: Pavel Machek (CIP) <pavel@denx.de>
> Acked-by: Neil Armstrong <narmstrong@baylibre.com>
Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git nand/next, thanks.
Miquel
______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-09-07 7:23 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-24 8:38 [PATCH] mtd: rawnand: oxnas: cleanup/simplify code Pavel Machek
2020-07-24 10:01 ` Neil Armstrong
2020-09-07 7:22 ` Miquel Raynal
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).