Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751876AbdFEKkS (ORCPT ); Mon, 5 Jun 2017 06:40:18 -0400 Received: from smtprelay0143.hostedemail.com ([216.40.44.143]:35464 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751850AbdFEKkQ (ORCPT ); Mon, 5 Jun 2017 06:40:16 -0400 X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::::::::::::::::::,RULES_HIT:41:355:379:541:599:988:989:1260:1277:1311:1313:1314:1345:1359:1373:1437:1515:1516:1518:1534:1537:1566:1593:1594:1711:1714:1730:1747:1777:1792:2393:2553:2559:2562:2828:3138:3139:3140:3141:3142:3622:3865:3867:3873:4321:5007:6742:10004:10400:10848:11026:11232:11473:11658:11914:12043:12740:12760:12895:13069:13255:13311:13357:13439:14659:14721:21080:21611:21627:30054:30090:30091,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:,MSBL:0,DNSBL:none,Custom_rules:0:0:0,LFtime:2,LUA_SUMMARY:none X-HE-Tag: trip81_1d7110536f158 X-Filterd-Recvd-Size: 1531 Message-ID: <1496659200.15643.15.camel@perches.com> Subject: Re: [PATCH v3 03/17] mfd: madera: Add common support for Cirrus Logic Madera codecs From: Joe Perches To: Lee Jones , Richard Fitzgerald Cc: broonie@kernel.org, linus.walleij@linaro.org, gnurou@gmail.com, robh+dt@kernel.org, tglx@linutronix.de, jason@lakedaemon.net, alsa-devel@alsa-project.org, patches@opensource.wolfsonmicro.com, linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Date: Mon, 05 Jun 2017 03:40:00 -0700 In-Reply-To: <20170605103227.no257u6v4ob65bvg@dell> References: <1496415790-19164-1-git-send-email-rf@opensource.wolfsonmicro.com> <1496415790-19164-4-git-send-email-rf@opensource.wolfsonmicro.com> <20170605103227.no257u6v4ob65bvg@dell> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.22.6-1ubuntu1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 332 Lines: 13 On Mon, 2017-06-05 at 11:32 +0100, Lee Jones wrote: > On Fri, 02 Jun 2017, Richard Fitzgerald wrote: [] > > if (IS_ERR(madera->reset_gpio)) > > + ret = PTR_ERR(madera->reset_gpio); > > + else > > + ret = 0; > > If you pre-initialise ret, you can drop the else. Better to use: ret = PTR_ERR_OR_ZERO(madera->reset_gpio);