[PATCH 14/23] spi: fsl-espi: remove unneeded check in fsl_espi_do_trans

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



SPI core takes care that both values are always populated.

Signed-off-by: Heiner Kallweit <hkallweit1@xxxxxxxxx>
---
 drivers/spi/spi-fsl-espi.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/spi/spi-fsl-espi.c b/drivers/spi/spi-fsl-espi.c
index 6d06e14..4c64012 100644
--- a/drivers/spi/spi-fsl-espi.c
+++ b/drivers/spi/spi-fsl-espi.c
@@ -284,8 +284,7 @@ static int fsl_espi_do_trans(struct spi_message *m, struct spi_transfer *trans)
 		trans->delay_usecs = max(first->delay_usecs, t->delay_usecs);
 	}
 
-	if (trans->bits_per_word || trans->speed_hz)
-		fsl_espi_setup_transfer(spi, trans);
+	fsl_espi_setup_transfer(spi, trans);
 
 	if (trans->len)
 		ret = fsl_espi_bufs(spi, trans);
-- 
2.9.2


--
To unsubscribe from this list: send the line "unsubscribe linux-spi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux