Message ID | 1377857110-6882-2-git-send-email-wangyuhang2014@gmail.com |
---|---|
State | New, archived |
Headers | show |
On Fri, Aug 30, 2013 at 06:05:10PM +0800, wangyuhang wrote: > Delete a "return" when commit the patch to a new kernel version > by mistake. So recover it. Applied, thanks. Your commit subject should be in the form "spi: quad: Human readable text" - I fixed this one up to read: spi: quad: Fix missing return
diff --git a/drivers/spi/spi.c b/drivers/spi/spi.c index 6653913..10584ee 100644 --- a/drivers/spi/spi.c +++ b/drivers/spi/spi.c @@ -1466,6 +1466,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;
Delete a "return" when commit the patch to a new kernel version by mistake. So recover it. Signed-off-by: wangyuhang <wangyuhang2014@gmail.com> --- drivers/spi/spi.c | 1 + 1 file changed, 1 insertion(+)