summaryrefslogtreecommitdiffstats
path: root/drivers/spi/spi-bitbang.c
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2017-06-22 17:34:49 +0100
committerMark Brown <broonie@kernel.org>2017-06-23 12:26:38 +0100
commita2f07d38d6981ed220d86b7df07e4ac6a1734443 (patch)
tree2018ad9bac2d4fccb138c3547ee98dbaf2cec65c /drivers/spi/spi-bitbang.c
parentdcbe0d84dfa5a3e72b8e6ce622cd5ac78abbcab8 (diff)
downloadtalos-op-linux-a2f07d38d6981ed220d86b7df07e4ac6a1734443.tar.gz
talos-op-linux-a2f07d38d6981ed220d86b7df07e4ac6a1734443.zip
spi: stm32: fix error check on mbr being -ve
The error check of mbr < 0 is always false because mbr is a u32. Make mbt an int so that a -ve error return from stm32_spi_prepare_mbr can be detected. Detected by CoverityScan, CID#1446586 ("Unsigned compared against 0") Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi/spi-bitbang.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud