diff options
author | dan.carpenter@oracle.com <dan.carpenter@oracle.com> | 2013-06-09 16:07:28 +0300 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2013-06-10 10:28:04 +0100 |
commit | e33d085d11e54bc9fb07b2555cd104d8e7b3089b (patch) | |
tree | 4ccf035adb8aacc450aabbbe1fc07a197e3198dd /lib/crc7.c | |
parent | 68c315bb951d94210c43c52166d326f9c26f7ce8 (diff) | |
download | linux-e33d085d11e54bc9fb07b2555cd104d8e7b3089b.tar.bz2 |
spi: spi-xilinx: cleanup a check in xilinx_spi_txrx_bufs()
'!' has higher precedence than comparisons so the original condition
is equivalent to "if (xspi->remaining_bytes == 0)". This makes the
static checkers complain.
xspi->remaining_bytes is signed and from looking at the code
briefly, I think it might be able to go negative. I suspect that
going negative may cause a bug, but I don't have the hardware and
can't test.
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'lib/crc7.c')
0 files changed, 0 insertions, 0 deletions