From patchwork Wed Mar 9 00:15:55 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: kernel test robot X-Patchwork-Id: 8538561 Return-Path: X-Original-To: patchwork-alsa-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 26856C0553 for ; Wed, 9 Mar 2016 00:17:16 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 6007620204 for ; Wed, 9 Mar 2016 00:17:15 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id BBA1B2015E for ; Wed, 9 Mar 2016 00:17:13 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id ECBEB265497; Wed, 9 Mar 2016 01:17:11 +0100 (CET) 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, RCVD_IN_DNSWL_NONE, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 3C164261537; Wed, 9 Mar 2016 01:17:05 +0100 (CET) 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 1B6F426153A; Wed, 9 Mar 2016 01:17:03 +0100 (CET) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by alsa0.perex.cz (Postfix) with ESMTP id C6AB5261534 for ; Wed, 9 Mar 2016 01:16:55 +0100 (CET) Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga101.jf.intel.com with ESMTP; 08 Mar 2016 16:16:53 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.22,558,1449561600"; d="scan'208";a="760592838" Received: from bee.sh.intel.com (HELO bee) ([10.239.97.14]) by orsmga003.jf.intel.com with ESMTP; 08 Mar 2016 16:16:50 -0800 Received: from kbuild by bee with local (Exim 4.83) (envelope-from ) id 1adRo1-000L0M-DS; Wed, 09 Mar 2016 08:16:49 +0800 Date: Wed, 9 Mar 2016 08:15:55 +0800 From: kbuild test robot To: Jyri Sarha Message-ID: <20160309001555.GA169235@lkp-ib03> References: <201603090818.7sT7ovZf%fengguang.wu@intel.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <7e2cd007e1ea3217c817fb4e7782b0bfe11ea56c.1457465383.git.jsarha@ti.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: fengguang.wu@intel.com X-SA-Exim-Scanned: No (on bee); SAEximRunCond expanded to false Cc: devicetree@vger.kernel.org, alsa-devel@alsa-project.org, p.zabel@pengutronix.de, peter.ujfalusi@ti.com, Jyri Sarha , airlied@linux.ie, tomi.valkeinen@ti.com, tiwai@suse.de, arnaud.pouliquen@st.com, dri-devel@lists.freedesktop.org, liam.r.girdwood@linux.intel.com, tony@atomide.com, broonie@kernel.org, kbuild-all@01.org, bcousson@baylibre.com, rmk+kernel@arm.linux.org.uk, linux-omap@vger.kernel.org Subject: [alsa-devel] [PATCH] drm/i2c: tda998x: fix ptr_ret.cocci warnings 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 drivers/gpu/drm/i2c/tda998x_drv.c:1329:1-3: WARNING: PTR_ERR_OR_ZERO can be used Use PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) + PTR_ERR Generated by: scripts/coccinelle/api/ptr_ret.cocci CC: Jyri Sarha Signed-off-by: Fengguang Wu --- tda998x_drv.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) --- a/drivers/gpu/drm/i2c/tda998x_drv.c +++ b/drivers/gpu/drm/i2c/tda998x_drv.c @@ -1326,10 +1326,7 @@ static int tda998x_audio_codec_init(stru dev, HDMI_CODEC_DRV_NAME, PLATFORM_DEVID_AUTO, &codec_data, sizeof(codec_data)); - if (IS_ERR(priv->audio_pdev)) - return PTR_ERR(priv->audio_pdev); - - return 0; + return PTR_ERR_OR_ZERO(priv->audio_pdev); } /* I2C driver functions */