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

Skip to content
Commit f6f0083c authored by Colin Ian King's avatar Colin Ian King Committed by Mark Brown
Browse files

spi: armada-3700: fix unsigned compare than zero on irq



spi->irq is an unsigned integer hence the check if status is less than
zero has no effect.  Fix this by replacing spi->irq with an int irq
so the less than zero compare will correctly detect errors.

Issue found with static analysis with CoverityScan, CID1388567

Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
Acked-by: default avatarRomain Perier <romain.perier@free-electrons.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent fafd6794
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment