All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH][next] mtd: rawnand: meson: fix missing assignment of ret on a call to meson_chip_buffer_init
@ 2019-01-29 10:57 ` Colin King
  0 siblings, 0 replies; 34+ messages in thread
From: Colin King @ 2019-01-29 10:57 UTC (permalink / raw)
  To: Liang Yang, Boris Brezillon, Miquel Raynal, Richard Weinberger,
	David Woodhouse, Brian Norris, Marek Vasut, Kevin Hilman,
	linux-mtd, linux-arm-kernel, linux-amlogic
  Cc: kernel-janitors, linux-kernel

From: Colin Ian King <colin.king@canonical.com>

The call to meson_chip_buffer_init is not assigning ret, however, ret
is being checked for failure. Fix this by adding in the missing assignment.

Fixes: 2d570b34b41a ("mtd: rawnand: meson: add support for Amlogic NAND flash controller")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
---
 drivers/mtd/nand/raw/meson_nand.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/mtd/nand/raw/meson_nand.c b/drivers/mtd/nand/raw/meson_nand.c
index e858d58d97b0..b9c543d1054c 100644
--- a/drivers/mtd/nand/raw/meson_nand.c
+++ b/drivers/mtd/nand/raw/meson_nand.c
@@ -1206,7 +1206,7 @@ static int meson_nand_attach_chip(struct nand_chip *nand)
 		dev_err(nfc->dev, "16bits bus width not supported");
 		return -EINVAL;
 	}
-	meson_chip_buffer_init(nand);
+	ret = meson_chip_buffer_init(nand);
 	if (ret)
 		return -ENOMEM;
 
-- 
2.19.1

^ permalink raw reply related	[flat|nested] 34+ messages in thread

end of thread, other threads:[~2019-02-05 19:06 UTC | newest]

Thread overview: 34+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-01-29 10:57 [PATCH][next] mtd: rawnand: meson: fix missing assignment of ret on a call to meson_chip_buffer_init Colin King
2019-01-29 10:57 ` Colin King
2019-01-29 10:57 ` Colin King
2019-01-29 10:57 ` Colin King
2019-01-30  5:20 ` [PATCH][next] mtd: rawnand: meson: fix missing assignment of ret on a call to meson_chip_buffer_ Liang Yang
2019-01-30  5:20   ` [PATCH][next] mtd: rawnand: meson: fix missing assignment of ret on a call to meson_chip_buffer_init Liang Yang
2019-01-30  5:20   ` Liang Yang
2019-01-30  5:20   ` Liang Yang
2019-01-30  5:20   ` Liang Yang
2019-01-30  9:26 ` [PATCH][next] mtd: rawnand: meson: fix missing assignment of ret on a call to meson_chip_buffer_ Liang Yang
2019-01-30  9:26   ` [PATCH][next] mtd: rawnand: meson: fix missing assignment of ret on a call to meson_chip_buffer_init Liang Yang
2019-01-30  9:26   ` Liang Yang
2019-01-30  9:26   ` Liang Yang
2019-01-30  9:26   ` Liang Yang
2019-01-30  9:32   ` [PATCH][next] mtd: rawnand: meson: fix missing assignment of ret on a call to meson_chip_buffer_ Miquel Raynal
2019-01-30  9:32     ` [PATCH][next] mtd: rawnand: meson: fix missing assignment of ret on a call to meson_chip_buffer_init Miquel Raynal
2019-01-30  9:32     ` Miquel Raynal
2019-01-30  9:32     ` Miquel Raynal
2019-01-30  9:32     ` Miquel Raynal
2019-01-30  9:34     ` [PATCH][next] mtd: rawnand: meson: fix missing assignment of ret on a call to meson_chip_buffer_ Colin Ian King
2019-01-30  9:34       ` [PATCH][next] mtd: rawnand: meson: fix missing assignment of ret on a call to meson_chip_buffer_init Colin Ian King
2019-01-30  9:34       ` Colin Ian King
2019-01-30  9:34       ` Colin Ian King
2019-01-30  9:34       ` Colin Ian King
2019-01-30  9:43       ` [PATCH][next] mtd: rawnand: meson: fix missing assignment of ret on a call to meson_chip_buffer_ Liang Yang
2019-01-30  9:43         ` [PATCH][next] mtd: rawnand: meson: fix missing assignment of ret on a call to meson_chip_buffer_init Liang Yang
2019-01-30  9:43         ` Liang Yang
2019-01-30  9:43         ` Liang Yang
2019-01-30  9:43         ` Liang Yang
2019-02-05 19:05 ` [PATCH][next] mtd: rawnand: meson: fix missing assignment of ret on a call to meson_chip_buffer_ Miquel Raynal
2019-02-05 19:05   ` [PATCH][next] mtd: rawnand: meson: fix missing assignment of ret on a call to meson_chip_buffer_init Miquel Raynal
2019-02-05 19:05   ` Miquel Raynal
2019-02-05 19:05   ` Miquel Raynal
2019-02-05 19:05   ` Miquel Raynal

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.