summaryrefslogtreecommitdiff
path: root/drivers/spi/spi-fsl-espi.c
diff options
context:
space:
mode:
authorHeiner Kallweit <hkallweit1@gmail.com>2016-09-04 07:57:18 (GMT)
committerMark Brown <broonie@kernel.org>2016-09-06 10:55:20 (GMT)
commit71581a1507e642bbc6f698a3f43355552ee8056f (patch)
tree27ae5c05ccb923d454624e02c8e61c8b69698ff7 /drivers/spi/spi-fsl-espi.c
parenta755af52f8ef278985d1475070c0647f2e6e47a7 (diff)
downloadlinux-71581a1507e642bbc6f698a3f43355552ee8056f.tar.xz
spi: fsl-espi: remove unneeded check in fsl_espi_do_trans
SPI core takes care that both values are always populated. Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi/spi-fsl-espi.c')
-rw-r--r--drivers/spi/spi-fsl-espi.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/spi/spi-fsl-espi.c b/drivers/spi/spi-fsl-espi.c
index b00313b..16fff72 100644
--- a/drivers/spi/spi-fsl-espi.c
+++ b/drivers/spi/spi-fsl-espi.c
@@ -279,8 +279,7 @@ static void fsl_espi_do_trans(struct spi_message *m,
trans.tx_buf = espi_trans->tx_buf;
trans.rx_buf = espi_trans->rx_buf;
- if (trans.bits_per_word || trans.speed_hz)
- fsl_espi_setup_transfer(spi, &trans);
+ fsl_espi_setup_transfer(spi, &trans);
if (trans.len)
status = fsl_espi_bufs(spi, &trans);