nandsim: Fix return code testing of ns_find_operation()
Subsystems (2)
Richard Weinberger
maintainerPATCH 1/1 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]>
--- drivers/mtd/nand/raw/nandsim.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/mtd/nand/raw/nandsim.c +1 -1
@@ -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) &&
Signature · 6 lines
2.26.2 ______________________________________________________ Linux MTD discussion mailing list http://lists.infradead.org/mailman/listinfo/linux-mtd/
Quoted 4 lines · Richard Weinberger
ns_find_operation()returns 0 on success.Fixes 052a7a5374bc ("mtd: rawnand: nandsim: Clean error handling")Signed-off-by Richard Weinberger <[email protected]>
Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git mtd/fixes, thanks.
Miquel