spi: fsl-espi: remove unneeded check in fsl_espi_do_trans
authorHeiner Kallweit <hkallweit1@gmail.com>
Sun, 4 Sep 2016 07:57:18 +0000 (09:57 +0200)
committerMark Brown <broonie@kernel.org>
Tue, 6 Sep 2016 10:55:20 +0000 (11:55 +0100)
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>
drivers/spi/spi-fsl-espi.c

index b00313bed7e9e9ccdea80ec8b2b122da075e5660..16fff7237ab2e5f62ac4cae0292a8666316c1835 100644 (file)
@@ -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);