Message ID | 20170730164329.GA26670@intel17.lkp.intel.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 53F19603B4 for <patchwork-linux-arm@patchwork.kernel.org>; Sun, 30 Jul 2017 17:00:17 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4347E28573 for <patchwork-linux-arm@patchwork.kernel.org>; Sun, 30 Jul 2017 17:00:17 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 37FEF28595; Sun, 30 Jul 2017 17:00:17 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 853AD28573 for <patchwork-linux-arm@patchwork.kernel.org>; Sun, 30 Jul 2017 17:00:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=Ph+E1KrMFHwdOIjGwJxb3pci4CjK17b8iiQuo+XJmxk=; b=kwURpkTqcjoXGv XP7BN/OFnAdpqMlBoweMQvdakzO9PRAUwnUxNX/8nJx3Xfi0lKUEvR1IMDuE2obbHCzdl3pgMd4g7 r+z2iFAfhau/NTPZepPW2yaTkIOjOHicmdDm3Ca5JUPovm41kicfCIftBiuvPbpKZRdlkXSDkuDvU 9v3i4/UnNH3Jz5oHuTSiLdS97sE9o/gU8r0VO5ryuPXne0krLtsVcRQueg9NdXGRvr2dQhXMlhiMi qjFKWodYX1r+BG7uE+A9SCWD9nKhtw/qurR6KzC6F66ZLyUfJvJcR4SJvMlUomI1O1lduL+hQuvTO SqCI+QQA0LftzhS/NzNg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dbrZE-0001jc-Hr; Sun, 30 Jul 2017 16:59:48 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dbrYu-0001NM-Fo for linux-arm-kernel@bombadil.infradead.org; Sun, 30 Jul 2017 16:59:28 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=PpQ6x0LI0ohl5sGLNZRUQNsLxH3JA+Ei5fL1KLUqnQQ=; b=WeaLajWzebAlfSXxSTsfhBH7m ad2VKodQPkLLcrsAanwcSUQIIJKkNI7ckn+Ms4Y13RROwx0Yxw6CyHGi3PPgkLOWiOeVOTjLyObor 7Rr35vtTfqfBft9hmfPQE2Mi5LrOhmUmJxo5yvNF5b8akGJnOxw/cYy5vnF0tCY//V945DKRt+NBs coMcOOoTm8N9IdsCEVQ00lKKH1HJHuvXVvIUhJlGWYUscgJXebZ/S39QYAe4yLCJQ8JH1Oa86NJy5 a6EZg+AAEowQZsre0TYoXeeDvnPer0O2s6BY4M8qzbqrKEGox4MsExQFFGn28AfHCKm3bxWD+PFTj 4gQ9Bh99w==; Received: from mga04.intel.com ([192.55.52.120]) by casper.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dbrKU-0008ON-SB for linux-arm-kernel@lists.infradead.org; Sun, 30 Jul 2017 16:44:36 +0000 Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 30 Jul 2017 09:44:06 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.40,437,1496127600"; d="scan'208";a="133757752" Received: from bee.sh.intel.com (HELO bee) ([10.239.97.14]) by fmsmga006.fm.intel.com with ESMTP; 30 Jul 2017 09:43:51 -0700 Received: from kbuild by bee with local (Exim 4.84_2) (envelope-from <fengguang.wu@intel.com>) id 1dbrO3-0008wq-F6; Mon, 31 Jul 2017 00:48:15 +0800 Date: Mon, 31 Jul 2017 00:43:30 +0800 From: kbuild test robot <lkp@intel.com> To: codekipper@gmail.com Subject: [PATCH] ASoC: sun4i-i2s: fix ptr_ret.cocci warnings Message-ID: <20170730164329.GA26670@intel17.lkp.intel.com> References: <201707310016.RARC8ov7%fengguang.wu@intel.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20170729141753.20174-6-codekipper@gmail.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-SA-Exim-Connect-IP: <locally generated> X-SA-Exim-Mail-From: fengguang.wu@intel.com X-SA-Exim-Scanned: No (on bee); SAEximRunCond expanded to false X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170730_174435_186976_EFDC3EF1 X-CRM114-Status: GOOD ( 10.59 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Cc: alsa-devel@alsa-project.org, be17068@iperbole.bo.it, linux-kernel@vger.kernel.org, lgirdwood@gmail.com, Marcus Cooper <codekipper@gmail.com>, linux-sunxi@googlegroups.com, broonie@kernel.org, kbuild-all@01.org, maxime.ripard@free-electrons.com, linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP |
--- a/sound/soc/sunxi/sun4i-i2s.c +++ b/sound/soc/sunxi/sun4i-i2s.c @@ -737,10 +737,7 @@ static int sun4i_i2s_init_regmap_fields( i2s->field_rxchansel = devm_regmap_field_alloc(dev, i2s->regmap, i2s->variant->field_rxchansel); - if (IS_ERR(i2s->field_rxchansel)) - return PTR_ERR(i2s->field_rxchansel); - - return 0; + return PTR_ERR_OR_ZERO(i2s->field_rxchansel); } static int sun4i_i2s_probe(struct platform_device *pdev)
sound/soc/sunxi/sun4i-i2s.c:740: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 Fixes: 298207690de9 ("ASoC: sun4i-i2s: Add regmap fields for channels") CC: Marcus Cooper <codekipper@gmail.com> Signed-off-by: Fengguang Wu <fengguang.wu@intel.com> --- sun4i-i2s.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-)