projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b3a9e3b
)
nandsim: Fix return code testing of ns_find_operation()
author
Richard Weinberger
<richard@nod.at>
Mon, 15 Jun 2020 11:34:04 +0000
(13:34 +0200)
committer
Miquel Raynal
<miquel.raynal@bootlin.com>
Mon, 15 Jun 2020 17:39:22 +0000
(19:39 +0200)
ns_find_operation() returns 0 on success.
Fixes: 052a7a5374bc ("mtd: rawnand: nandsim: Clean error handling")
Signed-off-by: Richard Weinberger <richard@nod.at>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link:
https://lore.kernel.org/linux-mtd/20200615113404.25447-1-richard@nod.at
drivers/mtd/nand/raw/nandsim.c
patch
|
blob
|
history
diff --git
a/drivers/mtd/nand/raw/nandsim.c
b/drivers/mtd/nand/raw/nandsim.c
index 0a5cb77966cc7e0d615968fd27969079ddcf9ca6..f5a53aac3c5ff3fe4cbe287f8f8ef23d7ef0e115 100644
(file)
--- 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) &&