Commit d5ee722a authored by wangyuhang's avatar wangyuhang Committed by Mark Brown

spi: quad: Fix missing return

Delete a "return" when commit the patch to a new kernel version
 by mistake. So recover it.
Signed-off-by: default avatarwangyuhang <wangyuhang2014@gmail.com>
Signed-off-by: default avatarMark Brown <broonie@linaro.org>
parent db90a441
...@@ -1463,6 +1463,7 @@ static int __spi_async(struct spi_device *spi, struct spi_message *message) ...@@ -1463,6 +1463,7 @@ static int __spi_async(struct spi_device *spi, struct spi_message *message)
return -EINVAL; return -EINVAL;
if (xfer->speed_hz && master->max_speed_hz && if (xfer->speed_hz && master->max_speed_hz &&
xfer->speed_hz > master->max_speed_hz) xfer->speed_hz > master->max_speed_hz)
return -EINVAL;
if (xfer->tx_buf && !xfer->tx_nbits) if (xfer->tx_buf && !xfer->tx_nbits)
xfer->tx_nbits = SPI_NBITS_SINGLE; xfer->tx_nbits = SPI_NBITS_SINGLE;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment