Colin Ian King 757ec116c9
spi: npcm: fix u32 csgpio being checked for less than zero
The u32 variable csgpio is being checked for an error return
from the call to of_get_named_gpio, however, since this is unsigned
this comparison will always be false. Fix this by making csgpio an
int and fix up the %u format specifiers to %d accordingly.

Detected by CoverityScan, CID#1475476 ("Unsigned compared against 0")

Fixes: 2a22f1b30cee ("spi: npcm: add NPCM PSPI controller driver")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
2018-11-14 14:02:33 -08:00
..
2016-07-07 11:44:43 +02:00
2018-11-05 11:55:06 +00:00
2018-05-03 10:27:43 +09:00
2017-01-23 18:09:37 +00:00
2018-11-13 10:02:09 -08:00
2017-08-10 15:50:23 +01:00
2017-05-26 12:41:07 +01:00