spi: fsl-espi: improve message length handling
authorHeiner Kallweit <hkallweit1@gmail.com>
Wed, 7 Sep 2016 20:54:35 +0000 (22:54 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 12 Sep 2016 19:03:49 +0000 (20:03 +0100)
commit06af115d6c6d8b3d7b6cbc8a46f0603e70b1be58
tree2c5e79528375e2ade833a374ab717bfcf887d0d2
parentcce7e3a2fe39a5b66162a3dc1463a1af598d0803
spi: fsl-espi: improve message length handling

Move checking for a zero-length message up in the call chain and
use m->frame_length instead of re-calculating the overall length
of all transfers in the message.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-fsl-espi.c