From patchwork Fri Aug 30 10:05:10 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?546L5a6H6Iiq?= X-Patchwork-Id: 271213 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from casper.infradead.org (unknown [IPv6:2001:770:15f::2]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id C0F5B2C0082 for ; Fri, 30 Aug 2013 20:07:05 +1000 (EST) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VFLbS-0008NF-Tw; Fri, 30 Aug 2013 10:06:55 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1VFLbR-0001Vt-5E; Fri, 30 Aug 2013 10:06:53 +0000 Received: from mail-pa0-x233.google.com ([2607:f8b0:400e:c03::233]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VFLbP-0001Tt-Ou for linux-mtd@lists.infradead.org; Fri, 30 Aug 2013 10:06:52 +0000 Received: by mail-pa0-f51.google.com with SMTP id lf1so2146639pab.10 for ; Fri, 30 Aug 2013 03:06:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=1r+uW3ARkZQWgKBmKj1l1vPXkZmm49yPnuczdE9D804=; b=gs056l4UDAeym41m1sWcSW1JkB/aB8XN25Rzp/T/jRy6erS90SdhhtiS4hN6WIdnt3 W7VFLvCOzdwGw8VnitaY3lpGx5/bfpjm7EMw2oE4cQ7+SCym84AIB0ZAt3fzb1d9Zfz2 VC24uPsoEDPD37dWqOCEEGi46RRdHkDqxF4IVbGXSax/j91ICe5Jfm6Pal9PfWnICydE qv86CUE8jA2iKgzf9NZm4bbgZE9lfh0qJ84cosI2l9MebqDoRG/ZqTYDElk8IAAlCPwH CwUaGPV9r1WcLjIKw/elyXj3Mt09WZ9oYePVWOMWJdUENCzyTTLw8gAE5jEIDuaPq4v/ OKzQ== X-Received: by 10.66.169.172 with SMTP id af12mr9907690pac.23.1377857190210; Fri, 30 Aug 2013 03:06:30 -0700 (PDT) Received: from localhost.localdomain ([218.24.172.134]) by mx.google.com with ESMTPSA id ht5sm43465461pbb.29.1969.12.31.16.00.00 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 30 Aug 2013 03:06:29 -0700 (PDT) From: wangyuhang To: broonie@kernel.org, linux-spi@vger.kernel.org, linux-mtd@lists.infradead.org, pekon@ti.com Subject: [PATCH 2/2] Miss return in patch: commit id:f477b7fb13df2b843997559ff34e87d054ba6538 Date: Fri, 30 Aug 2013 18:05:10 +0800 Message-Id: <1377857110-6882-2-git-send-email-wangyuhang2014@gmail.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1377857110-6882-1-git-send-email-wangyuhang2014@gmail.com> References: <1377857110-6882-1-git-send-email-wangyuhang2014@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130830_060651_906611_65596D95 X-CRM114-Status: UNSURE ( 9.19 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -1.8 (-) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-1.8 points) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (wangyuhang2014[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record 0.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends in digit (wangyuhang2014[at]gmail.com) -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature Cc: wangyuhang X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-mtd" Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org Delete a "return" when commit the patch to a new kernel version by mistake. So recover it. Signed-off-by: wangyuhang --- 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;