From patchwork Tue Oct 7 18:29:55 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 5048351 Return-Path: X-Original-To: patchwork-alsa-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 8FF2D9F295 for ; Tue, 7 Oct 2014 18:30:56 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id D382420204 for ; Tue, 7 Oct 2014 18:30:55 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id 9B3BC20200 for ; Tue, 7 Oct 2014 18:30:54 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 39DEF2606D1; Tue, 7 Oct 2014 20:30:53 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 Received: from alsa0.perex.cz (localhost [IPv6:::1]) by alsa0.perex.cz (Postfix) with ESMTP id 8563126046C; Tue, 7 Oct 2014 20:30:44 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id 7FE022604D0; Tue, 7 Oct 2014 20:30:43 +0200 (CEST) Received: from na01-bn1-obe.outbound.protection.outlook.com (mail-bn1bbn0106.outbound.protection.outlook.com [157.56.111.106]) by alsa0.perex.cz (Postfix) with ESMTP id D113126046C for ; Tue, 7 Oct 2014 20:30:34 +0200 (CEST) Received: from BN3PR0301CA0069.namprd03.prod.outlook.com (25.160.152.165) by BN1PR03MB249.namprd03.prod.outlook.com (10.255.200.13) with Microsoft SMTP Server (TLS) id 15.0.1044.10; Tue, 7 Oct 2014 18:30:32 +0000 Received: from BN1BFFO11FD059.protection.gbl (2a01:111:f400:7c10::1:133) by BN3PR0301CA0069.outlook.office365.com (2a01:111:e400:401e::37) with Microsoft SMTP Server (TLS) id 15.0.1044.10 via Frontend Transport; Tue, 7 Oct 2014 18:30:32 +0000 Received: from az84smr01.freescale.net (192.88.158.2) by BN1BFFO11FD059.mail.protection.outlook.com (10.58.145.14) with Microsoft SMTP Server (TLS) id 15.0.1039.16 via Frontend Transport; Tue, 7 Oct 2014 18:30:32 +0000 Received: from fabio-Latitude-E6410.am.freescale.net ([10.29.244.12]) by az84smr01.freescale.net (8.14.3/8.14.0) with ESMTP id s97IUTpl020516; Tue, 7 Oct 2014 11:30:30 -0700 From: Fabio Estevam To: Date: Tue, 7 Oct 2014 15:29:55 -0300 Message-ID: <1412706598-18796-1-git-send-email-fabio.estevam@freescale.com> X-Mailer: git-send-email 1.9.1 X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:192.88.158.2; CTRY:US; IPV:CAL; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(189002)(199003)(105606002)(50986999)(50226001)(26826002)(97736003)(95666004)(21056001)(62966002)(92726001)(2351001)(46102003)(107046002)(86362001)(4396001)(229853001)(87286001)(92566001)(69596002)(120916001)(33646002)(31966008)(50466002)(81156004)(36756003)(6806004)(77156001)(19580395003)(19580405001)(47776003)(68736004)(64706001)(84676001)(20776003)(44976005)(110136001)(104166001)(87936001)(76482002)(80022003)(88136002)(106466001)(99396003)(93916002)(85852003)(102836001)(104016003)(48376002)(89996001)(85306004); DIR:OUT; SFP:1102; SCL:1; SRVR:BN1PR03MB249; H:az84smr01.freescale.net; FPR:; MLV:ovrnspm; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; MIME-Version: 1.0 X-Microsoft-Antispam: UriScan:; X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:;SRVR:BN1PR03MB249; X-Exchange-Antispam-Report-Test: UriScan:; X-Forefront-PRVS: 035748864E Received-SPF: Fail (protection.outlook.com: domain of freescale.com does not designate 192.88.158.2 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.158.2; helo=az84smr01.freescale.net; Authentication-Results: spf=fail (sender IP is 192.88.158.2) smtp.mailfrom=Fabio.Estevam@freescale.com; X-OriginatorOrg: freescale.com Cc: nicoleotsuka@gmail.com, Fabio Estevam , alsa-devel@alsa-project.org Subject: [alsa-devel] [PATCH 1/4] ASoC: mc13783: Delete unneeded test before of_node_put X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP of_node_put() supports NULL as its argument, so the initial test is not necessary. Signed-off-by: Fabio Estevam --- sound/soc/codecs/mc13783.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sound/soc/codecs/mc13783.c b/sound/soc/codecs/mc13783.c index 2c1f1b0..388f90a 100644 --- a/sound/soc/codecs/mc13783.c +++ b/sound/soc/codecs/mc13783.c @@ -784,8 +784,7 @@ static int __init mc13783_codec_probe(struct platform_device *pdev) mc13783_dai_async, ARRAY_SIZE(mc13783_dai_async)); out: - if (np) - of_node_put(np); + of_node_put(np); return ret; }