Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 3938c0d4 authored by Nicholas Mc Guire's avatar Nicholas Mc Guire Committed by Boris Brezillon
Browse files

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: default avatarNicholas Mc Guire <hofrat@osadl.org>
Signed-off-by: default avatarBoris Brezillon <boris.brezillon@bootlin.com>
parent 261b354c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment