]> git.karo-electronics.de Git - linux-beck.git/commit
spi: fsl-espi: remove unneeded variable in fsl_espi_do_trans
authorHeiner Kallweit <hkallweit1@gmail.com>
Thu, 25 Aug 2016 04:45:55 +0000 (06:45 +0200)
committerMark Brown <broonie@kernel.org>
Thu, 1 Sep 2016 20:15:58 +0000 (21:15 +0100)
commitdbd4fefb5b7cba19e3f89c097d93ad02049e38e3
tree09ebba0f30548d19ddc54ba4bd514965bad2ab45
parent10ed1e6d320ca01deef3bc36df91e04ecd69a60e
spi: fsl-espi: remove unneeded variable in fsl_espi_do_trans

Creating a message, adding one transfer, and then iterating over
all transfers in the message doesn't make sense.
We can simply use the original transfer directly.

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