diff options
author | Richard Weinberger <[email protected]> | 2020-06-15 13:34:04 +0200 |
---|---|---|
committer | Miquel Raynal <[email protected]> | 2020-06-15 19:39:22 +0200 |
commit | 1f6ce4445ab5c97aa63583bd6ce4fc20f471e11c (patch) | |
tree | 18ab8a6cf7c8055a996d4292b88ba2251d5a9e3d | |
parent | b3a9e3b9622ae10064826dccb4f7a52bd88c7407 (diff) |
nandsim: Fix return code testing of ns_find_operation()
ns_find_operation() returns 0 on success.
Fixes: 052a7a5374bc ("mtd: rawnand: nandsim: Clean error handling")
Signed-off-by: Richard Weinberger <[email protected]>
Signed-off-by: Miquel Raynal <[email protected]>
Link: https://lore.kernel.org/linux-mtd/[email protected]
-rw-r--r-- | drivers/mtd/nand/raw/nandsim.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) && |