public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: wangyuhang <wangyuhang2014@gmail.com>
To: broonie@kernel.org, linux-spi@vger.kernel.org,
	linux-mtd@lists.infradead.org, pekon@ti.com
Cc: wangyuhang <wangyuhang2014@gmail.com>
Subject: [PATCH 2/2] Miss return in patch: commit id:f477b7fb13df2b843997559ff34e87d054ba6538
Date: Fri, 30 Aug 2013 18:05:10 +0800	[thread overview]
Message-ID: <1377857110-6882-2-git-send-email-wangyuhang2014@gmail.com> (raw)
In-Reply-To: <1377857110-6882-1-git-send-email-wangyuhang2014@gmail.com>

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(+)

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;
-- 
1.7.9.5

  reply	other threads:[~2013-08-30 10:06 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-30 10:05 [PATCH 1/2] spi: dual and quad support(add single macro) wangyuhang
2013-08-30 10:05 ` wangyuhang [this message]
2013-08-30 21:58   ` [PATCH 2/2] Miss return in patch: commit id:f477b7fb13df2b843997559ff34e87d054ba6538 Mark Brown

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1377857110-6882-2-git-send-email-wangyuhang2014@gmail.com \
    --to=wangyuhang2014@gmail.com \
    --cc=broonie@kernel.org \
    --cc=linux-mtd@lists.infradead.org \
    --cc=linux-spi@vger.kernel.org \
    --cc=pekon@ti.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox