mirror of
https://github.com/torvalds/linux.git
synced 2024-11-16 00:52:01 +00:00
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: wangyuhang <wangyuhang2014@gmail.com> Signed-off-by: Mark Brown <broonie@linaro.org>
This commit is contained in:
parent
db90a44177
commit
d5ee722ab9
@ -1463,6 +1463,7 @@ static int __spi_async(struct spi_device *spi, struct spi_message *message)
|
||||
return -EINVAL;
|
||||
if (xfer->speed_hz && master->max_speed_hz &&
|
||||
xfer->speed_hz > master->max_speed_hz)
|
||||
return -EINVAL;
|
||||
|
||||
if (xfer->tx_buf && !xfer->tx_nbits)
|
||||
xfer->tx_nbits = SPI_NBITS_SINGLE;
|
||||
|
Loading…
Reference in New Issue
Block a user