Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933005Ab2HVQMe (ORCPT ); Wed, 22 Aug 2012 12:12:34 -0400 Received: from mail127.messagelabs.com ([216.82.250.115]:27577 "EHLO mail127.messagelabs.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932661Ab2HVQMa convert rfc822-to-8bit (ORCPT ); Wed, 22 Aug 2012 12:12:30 -0400 X-Env-Sender: hartleys@visionengravers.com X-Msg-Ref: server-9.tower-127.messagelabs.com!1345651939!8264530!28 X-Originating-IP: [216.166.12.31] X-StarScan-Received: X-StarScan-Version: 6.6.1.2; banners=-,-,- X-VirusChecked: Checked From: H Hartley Sweeten To: Julia Lawall , Grant Likely CC: "spi-devel-general@lists.sourceforge.net" , "kernel-janitors@vger.kernel.org" , "linux-kernel@vger.kernel.org" Date: Wed, 22 Aug 2012 11:12:26 -0500 Subject: RE: [PATCH 10/14] drivers/spi/spi-ep93xx.c: fix error return code Thread-Topic: [PATCH 10/14] drivers/spi/spi-ep93xx.c: fix error return code Thread-Index: Ac195ugB3gIXjaA5Sm+5zpfn8pJdhQCmdUGg Message-ID: References: <1345365870-29831-1-git-send-email-Julia.Lawall@lip6.fr> <1345365870-29831-12-git-send-email-Julia.Lawall@lip6.fr> In-Reply-To: <1345365870-29831-12-git-send-email-Julia.Lawall@lip6.fr> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1141 Lines: 34 On Sunday, August 19, 2012 1:44 AM, Julia Lawall wrote: > From: Julia Lawall > > Initialize return variable before exiting on an error path. > Signed-off-by: Julia Lawall > > --- > drivers/spi/spi-ep93xx.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/spi/spi-ep93xx.c b/drivers/spi/spi-ep93xx.c > index f97f1d2..9e7fdfd 100644 > --- a/drivers/spi/spi-ep93xx.c > +++ b/drivers/spi/spi-ep93xx.c > @@ -1105,6 +1105,7 @@ static int __devinit ep93xx_spi_probe(struct platform_device *pdev) > espi->wq = create_singlethread_workqueue("ep93xx_spid"); > if (!espi->wq) { > dev_err(&pdev->dev, "unable to create workqueue\n"); > + error = -ENOMEM; > goto fail_free_dma; > } > INIT_WORK(&espi->msg_work, ep93xx_spi_work); Looks ok to me... Thanks! Reviewed-by: H Hartley Sweeten -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/