Skip to content

Commit 1f6ce44

Browse files
richardweinbergermiquelraynal
authored andcommitted
nandsim: Fix return code testing of ns_find_operation()
ns_find_operation() returns 0 on success. Fixes: 052a7a5 ("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]
1 parent b3a9e3b commit 1f6ce44

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/mtd/nand/raw/nandsim.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1761,7 +1761,7 @@ static void ns_switch_state(struct nandsim *ns)
17611761

17621762
NS_DBG("switch_state: operation is unknown, try to find it\n");
17631763

1764-
if (!ns_find_operation(ns, 0))
1764+
if (ns_find_operation(ns, 0))
17651765
return;
17661766

17671767
if ((ns->state & ACTION_MASK) &&

0 commit comments

Comments
 (0)