Commit 1f6ce444 authored by Richard Weinberger's avatar Richard Weinberger Committed by Miquel Raynal

nandsim: Fix return code testing of ns_find_operation()

ns_find_operation() returns 0 on success.

Fixes: 052a7a53 ("mtd: rawnand: nandsim: Clean error handling")
Signed-off-by: default avatarRichard Weinberger <richard@nod.at>
Signed-off-by: default avatarMiquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20200615113404.25447-1-richard@nod.at
parent b3a9e3b9
......@@ -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) &&
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment