From: wangyuhang Date: Fri, 30 Aug 2013 10:05:10 +0000 (+0800) Subject: spi: quad: Fix missing return X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=d5ee722ab942451929ccf5bec4fb41f6d044b5c7;p=linux-beck.git 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 Signed-off-by: Mark Brown --- diff --git a/drivers/spi/spi.c b/drivers/spi/spi.c index 50f7fc3ed793..f0a6582061d5 100644 --- a/drivers/spi/spi.c +++ b/drivers/spi/spi.c @@ -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;