From: Heiner Kallweit Date: Sun, 4 Sep 2016 07:57:18 +0000 (+0200) Subject: spi: fsl-espi: remove unneeded check in fsl_espi_do_trans X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=71581a1507e642bbc6f698a3f43355552ee8056f;p=deliverable%2Flinux.git 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 Signed-off-by: Mark Brown --- diff --git a/drivers/spi/spi-fsl-espi.c b/drivers/spi/spi-fsl-espi.c index b00313bed7e9..16fff7237ab2 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);