mtd: spi-nor: cadence-quadspi: fix timeout handling
authorNicholas Mc Guire <hofrat@osadl.org>
Sat, 21 Jul 2018 14:21:51 +0000 (16:21 +0200)
committerBoris Brezillon <boris.brezillon@bootlin.com>
Wed, 1 Aug 2018 07:27:38 +0000 (09:27 +0200)
commit3938c0d4cf60477ec776c9a7751226b06bb3c3c0
tree6d24abdc60b1d3b0216982066fa6c353337d8caf
parent261b354caf299a3ff54ba5b35636687c857a0075
mtd: spi-nor: cadence-quadspi: fix timeout handling

wait_for_completion_timeout returns an unsigned long not an int, so
let's check its return value directly instead of storing it in ret,
and avoid checking for negative values since this cannot happen.

Signed-off-by: Nicholas Mc Guire <hofrat@osadl.org>
Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
drivers/mtd/spi-nor/cadence-quadspi.c