summaryrefslogtreecommitdiffstats
path: root/drivers/spi/spi-txx9.c
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2018-11-14 21:42:46 +0000
committerMark Brown <broonie@kernel.org>2018-11-14 14:02:33 -0800
commit757ec116c9bce4278fa4423039736c832cc63b6f (patch)
tree663a89d21ba00dc1a003be334e5e067b9e44936b /drivers/spi/spi-txx9.c
parent2a22f1b30cee8d1e104a6c5062a609bedbfd5c39 (diff)
downloadlinux-757ec116c9bce4278fa4423039736c832cc63b6f.tar.bz2
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>
Diffstat (limited to 'drivers/spi/spi-txx9.c')
0 files changed, 0 insertions, 0 deletions