Message ID | 20170525075139.GA721@intel11.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 7E5356032C for <patchwork-linux-arm@patchwork.kernel.org>; Thu, 25 May 2017 07:52:39 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6F1C926E1A for <patchwork-linux-arm@patchwork.kernel.org>; Thu, 25 May 2017 07:52:39 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 624DD274D2; Thu, 25 May 2017 07:52:39 +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 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 0479F26E1A for <patchwork-linux-arm@patchwork.kernel.org>; Thu, 25 May 2017 07:52:39 +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=IjRcNR8VeCU/3j6E9p38MZhMlA4ZFMzE8qi+oDA5uAU=; b=r9kxtxYljH8Egh 6TvaP+g5shUe2p0p8n2lWhQqFzg5r3iOLupe4CO5EY1CD9jXJHGshBlLxgVmw1+dCvm7FuaJTka2i +6yN58JsaamyW/+p9//bj5Si9osvFIMhBKOT5hvZ1vvrs7cDc9VaN1iKHW7NUhlXzkOpZusN821i7 KAuKXwwQYoI+y4p3ziiDG1c7BGsKIJKG6/HDi91wDKq+OfitvpWaOwx43AWM88T9diKvC0ZdqRqRT 6HnH8tbGqXBlH+ekad3JkmAlS+Duo3k1ZcPWygWN3Z960FdTqyJE8CBLyl0IwK41ZW4ipzU2P/Zbm vNR//nt7kwMYXxG/5rCQ==; 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 1dDnZW-0001bA-39; Thu, 25 May 2017 07:52:38 +0000 Received: from mga09.intel.com ([134.134.136.24]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dDnZS-00015E-Sx for linux-arm-kernel@lists.infradead.org; Thu, 25 May 2017 07:52:36 +0000 Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 25 May 2017 00:52:14 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.38,390,1491289200"; d="scan'208";a="266190878" Received: from bee.sh.intel.com (HELO bee) ([10.239.97.14]) by fmsmga004.fm.intel.com with ESMTP; 25 May 2017 00:52:02 -0700 Received: from kbuild by bee with local (Exim 4.84_2) (envelope-from <fengguang.wu@intel.com>) id 1dDncU-000Myk-Iq; Thu, 25 May 2017 15:55:42 +0800 Date: Thu, 25 May 2017 15:51:39 +0800 From: kbuild test robot <lkp@intel.com> To: Steve Longerbeam <slongerbeam@gmail.com> Subject: [PATCH] platform: video-mux: fix ptr_ret.cocci warnings Message-ID: <20170525075139.GA721@intel11.lkp.intel.com> References: <201705251540.fnn67915%fengguang.wu@intel.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1495672189-29164-19-git-send-email-steve_longerbeam@mentor.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-20170525_005235_048653_09D409C1 X-CRM114-Status: GOOD ( 11.45 ) 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: mark.rutland@arm.com, andrew-ct.chen@mediatek.com, minghsiu.tsai@mediatek.com, sakari.ailus@linux.intel.com, nick@shmanahar.org, songjun.wu@microchip.com, hverkuil@xs4all.nl, pavel@ucw.cz, robert.jarzmik@free.fr, devel@driverdev.osuosl.org, markus.heiser@darmarIT.de, laurent.pinchart+renesas@ideasonboard.com, shuah@kernel.org, linux@armlinux.org.uk, geert@linux-m68k.org, jean-christophe.trotin@st.com, devicetree@vger.kernel.org, kernel@pengutronix.de, arnd@arndb.de, mchehab@kernel.org, bparrot@ti.com, robh+dt@kernel.org, horms+renesas@verge.net.au, tiffany.lin@mediatek.com, linux-arm-kernel@lists.infradead.org, niklas.soderlund+renesas@ragnatech.se, gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org, kbuild-all@01.org, p.zabel@pengutronix.de, fabio.estevam@nxp.com, linux-media@vger.kernel.org, shawnguo@kernel.org, sudipm.mukherjee@gmail.com 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/drivers/media/platform/video-mux.c +++ b/drivers/media/platform/video-mux.c @@ -243,10 +243,7 @@ static int video_mux_probe_mmio_mux(stru field.lsb = ffs(mask) - 1; vmux->field = devm_regmap_field_alloc(dev, regmap, field); - if (IS_ERR(vmux->field)) - return PTR_ERR(vmux->field); - - return 0; + return PTR_ERR_OR_ZERO(vmux->field); } #endif
drivers/media/platform/video-mux.c:246: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: Philipp Zabel <p.zabel@pengutronix.de> Signed-off-by: Fengguang Wu <fengguang.wu@intel.com> --- video-mux.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-)