mtd: nand: denali: set proper error code on timeout
authorBrian Norris <computersforpeace@gmail.com>
Tue, 22 Jul 2014 02:07:31 +0000 (19:07 -0700)
committerBrian Norris <computersforpeace@gmail.com>
Tue, 19 Aug 2014 18:53:08 +0000 (11:53 -0700)
commitc115add9d073752d38f6517882dfeafe76fc4458
tree25469ca16e81dd4c8164bff8cc66eaca62326bcd
parent31f754628cbb12c983600f22d9f0fed50dfe2134
mtd: nand: denali: set proper error code on timeout

The condition "if (irq_status == 0)" already ensures that one half of
the ternary ?: is dead. I think this should probably actually be a FAIL,
not a PASS.

Caught by Coverity.

Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Cc: Jamie Iles <jamie@jamieiles.com>
drivers/mtd/nand/denali.c