linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] nandsim: Fix return code testing of ns_find_operation()
@ 2020-06-15 11:34 Richard Weinberger
  2020-06-15 17:39 ` Miquel Raynal
  0 siblings, 1 reply; 2+ messages in thread
From: Richard Weinberger @ 2020-06-15 11:34 UTC (permalink / raw)
  To: linux-mtd; +Cc: linux-kernel, miquel.raynal, vigneshr, Richard Weinberger

ns_find_operation() returns 0 on success.

Fixes: 052a7a5374bc ("mtd: rawnand: nandsim: Clean error handling")
Signed-off-by: Richard Weinberger <richard@nod.at>
---
 drivers/mtd/nand/raw/nandsim.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/mtd/nand/raw/nandsim.c b/drivers/mtd/nand/raw/nandsim.c
index 0a5cb77966cc..f5a53aac3c5f 100644
--- a/drivers/mtd/nand/raw/nandsim.c
+++ b/drivers/mtd/nand/raw/nandsim.c
@@ -1761,7 +1761,7 @@ static void ns_switch_state(struct nandsim *ns)
 
 		NS_DBG("switch_state: operation is unknown, try to find it\n");
 
-		if (!ns_find_operation(ns, 0))
+		if (ns_find_operation(ns, 0))
 			return;
 
 		if ((ns->state & ACTION_MASK) &&
-- 
2.26.2


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

* Re: [PATCH] nandsim: Fix return code testing of ns_find_operation()
  2020-06-15 11:34 [PATCH] nandsim: Fix return code testing of ns_find_operation() Richard Weinberger
@ 2020-06-15 17:39 ` Miquel Raynal
  0 siblings, 0 replies; 2+ messages in thread
From: Miquel Raynal @ 2020-06-15 17:39 UTC (permalink / raw)
  To: Richard Weinberger, linux-mtd; +Cc: Miquel Raynal, vigneshr, linux-kernel

On Mon, 2020-06-15 at 11:34:04 UTC, Richard Weinberger wrote:
> ns_find_operation() returns 0 on success.
> 
> Fixes: 052a7a5374bc ("mtd: rawnand: nandsim: Clean error handling")
> Signed-off-by: Richard Weinberger <richard@nod.at>

Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git mtd/fixes, thanks.

Miquel

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

end of thread, other threads:[~2020-06-15 17:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-15 11:34 [PATCH] nandsim: Fix return code testing of ns_find_operation() Richard Weinberger
2020-06-15 17:39 ` 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).