diff options
author | Nicholas Mc Guire | 2018-07-21 16:21:51 +0200 |
---|---|---|
committer | Boris Brezillon | 2018-08-01 09:27:38 +0200 |
commit | 3938c0d4cf60477ec776c9a7751226b06bb3c3c0 (patch) | |
tree | 6d24abdc60b1d3b0216982066fa6c353337d8caf /lib/scatterlist.c | |
parent | mtd: spi-nor: atmel-quadspi: Include gpio/consumer.h instead of gpio.h (diff) | |
download | kernel-qcow2-linux-3938c0d4cf60477ec776c9a7751226b06bb3c3c0.tar.gz kernel-qcow2-linux-3938c0d4cf60477ec776c9a7751226b06bb3c3c0.tar.xz kernel-qcow2-linux-3938c0d4cf60477ec776c9a7751226b06bb3c3c0.zip |
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>
Diffstat (limited to 'lib/scatterlist.c')
0 files changed, 0 insertions, 0 deletions