提交 71581a15 编写于 作者: H Heiner Kallweit 提交者: Mark Brown

spi: fsl-espi: remove unneeded check in fsl_espi_do_trans

SPI core takes care that both values are always populated.
Signed-off-by: NHeiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: NMark Brown <broonie@kernel.org>
上级 a755af52
...@@ -279,8 +279,7 @@ static void fsl_espi_do_trans(struct spi_message *m, ...@@ -279,8 +279,7 @@ static void fsl_espi_do_trans(struct spi_message *m,
trans.tx_buf = espi_trans->tx_buf; trans.tx_buf = espi_trans->tx_buf;
trans.rx_buf = espi_trans->rx_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) if (trans.len)
status = fsl_espi_bufs(spi, &trans); status = fsl_espi_bufs(spi, &trans);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册