mxs/spi: Increment the transfer length only if transfer succeeded
authorMarek Vasut <marex@denx.de>
Tue, 4 Sep 2012 02:40:16 +0000 (04:40 +0200)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 5 Sep 2012 23:42:11 +0000 (07:42 +0800)
The transfer function incremented (struct spi_message)->actual_length
unconditionally, even if the transfer failed. Rectify this by incrementing
this only if transfer succeeded.

Signed-off-by: Marek Vasut <marex@denx.de>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>

No differences found