spi: atmel: fix incorrect comparison
authorAlexandre Belloni <alexandre.belloni@free-electrons.com>
Tue, 6 May 2014 15:44:41 +0000 (17:44 +0200)
committerMark Brown <broonie@linaro.org>
Wed, 7 May 2014 19:50:20 +0000 (20:50 +0100)
commitb112f0585edd1c10e4986373d93ab0d95d12da82
tree468579ff0f745525be227eef4bebc4b634b3dad1
parent0c3b97487d15a452f1fa7bfd9b6f1bd1a31d538d
spi: atmel: fix incorrect comparison

Found using smatch:
drivers/spi/spi-atmel.c:878 atmel_spi_pump_pio_data() warn: unsigned
'as->current_remaining_bytes' is never less than zero.

Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/spi/spi-atmel.c