Message ID | 1511972416-25401-1-git-send-email-gomonovych@gmail.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 33A1760311 for <patchwork-linux-arm@patchwork.kernel.org>; Wed, 29 Nov 2017 16:32:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1D5D4299DC for <patchwork-linux-arm@patchwork.kernel.org>; Wed, 29 Nov 2017 16:32:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 11F2B29B51; Wed, 29 Nov 2017 16:32:38 +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=-4.2 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, DKIM_VALID, FREEMAIL_FROM, RCVD_IN_DNSWL_MED 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 B8C34299DC for <patchwork-linux-arm@patchwork.kernel.org>; Wed, 29 Nov 2017 16:32:37 +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:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=+b3SZJxQFfrDAN/x1BhDqW9iJFaBiX1Ks/votMHLXHY=; b=U/G 5Ik7sJRONjmYlJULQkPgzO6Tu6Ox4vzY4DI+dUccqtuVrgaMklaOuzlTQN/4lFnt71dYZDFN2qhbs qzpdPk3cReo80Iyz3xKDzBe35DuAeFcvY6ruDdBIRmrz/nnOcG2tQvcnL46rsm3TNfgi0fmPYuLNp DUStHkkP2J91tDn1cUDaQsxwu8uCljTBA5IxSsVCOjQBXWFK7y/A1f1udB8fJcHDJBG+89pH/l/0h xDCYM16Lc4vXlAgeKIRNle6JUWqxbTpHo9a0U0FthbhZlhKON+5k2hHCwMhuknEEnG8saJmdDVF3u BhkkzITghjbEJWpem86eAdtNPXfr3Gw==; 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 1eK5Hn-0007fu-AG; Wed, 29 Nov 2017 16:32:35 +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 1eK5Hl-0007QP-1v for linux-arm-kernel@bombadil.infradead.org; Wed, 29 Nov 2017 16:32:33 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Message-Id:Date:Subject:Cc:To:From: Sender:Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=NWCyhbk6GcMEuN+CRWC7kHGGfxIKsIp1bJjZU+B3sW0=; b=ovD8idBLX2eLTsxLFTQ4lbPQI s4u+UYdmUEH+kESGFnGr/YM6YKDa2LIpZg04BahV4AN9fWdASjfHSFZUz9yMppHZugZflgtLR9G/K W1RwpVMfbZ42yBpYdaWDhHY+apJQMGb7dfIhojZPS0tvXfkkajv2IV1q3OwpuQmHLPBw1Kbuekaqo d3g2ZLu7XFnDhzJWCr++N3xVKdhjgHlaop30eyXWQiF8/P2FbDO0iLAG5LvFQGpCQOMlL8HvG1ALE J+hoQphSUtEHen+xAWhZonY4Ms6kxtKkLR2xL7WdZcZxbzs3pYHEthEDDZBFQLGfEGE6sArp3fN0y uHqPtqUgg==; Received: from mail-lf0-x241.google.com ([2a00:1450:4010:c07::241]) by casper.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1eK56N-0003s8-NO for linux-arm-kernel@lists.infradead.org; Wed, 29 Nov 2017 16:20:49 +0000 Received: by mail-lf0-x241.google.com with SMTP id x20so4558490lff.1 for <linux-arm-kernel@lists.infradead.org>; Wed, 29 Nov 2017 08:20:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=NWCyhbk6GcMEuN+CRWC7kHGGfxIKsIp1bJjZU+B3sW0=; b=oHei7FeLJ8pnkMAC28JgSjC2zkBBtNo8RvsOFS0XI1NEcLF8et2SAlJ/U3aaW1ZvDQ rbEIs+Mmr1+cyec5gnUADicZhpr5poGpfWxEqxEWkLlNAKt4gg+sMYOG8YbMrHovn5l0 9JUqu5TRsYwpLx2sh6riptFt6+9eP8/D4lbwBC2HYG3rV1r/ychHTaGu+Tq0s075ykmU uUekoFJKkQqpv7B5Mv1CAYp+Xtec8BDcBUOXwlgeF79NtzRX7EgyUvr2RrNO2ZFnMB4q K8QhxbST0BkWHPiVHesYJUV0axSjvRVOr1y7ZOIJTfWu1+42R8RCGc/RuvyIXvol4jzW o3Cw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=NWCyhbk6GcMEuN+CRWC7kHGGfxIKsIp1bJjZU+B3sW0=; b=AcKwPcvOerbts3puGZ9HJpX6XOWH1BAblxxQUUYcF3o+DLetLQIC0zC+Xrk2y+H5ax /vjGpKQTv9O0Pq8LAbONpapsvuFqL/mVAeYCZVDGogcAxm13RsAz6RC9G2IoTox5iQQ8 btDTA2OO+BfYS5b7IgJFHUlTuyH/clrjnZ3E2GpPeeod4WnVQ4pjx5kFAs2zEER14yM+ Fj7o8FkKVwGU9849WJre8fKCCXlZhshDHnWEV1AWfsInVEEe9YYNf9cO1Retc1ELPfGb OiooFdMlonw75nCGBx0uK/NV8AukE6Ql/IuA7cW1+seESLmeTQ7pj3MJ/wGLmkBEgPJY p/ZA== X-Gm-Message-State: AJaThX7lpNvHpajkcks7MKwUXT/EVAKYB9g+drjxe3a9N7WWmWCLYieQ W3M9uPlZk46VwjL2t3wIvu+D/BiW X-Google-Smtp-Source: AGs4zMbHj8DpUwqRRZQsTh29KFjBbbi/lTwj+jWlnCbYrUigi2xy2Hf26JQpX4vQUuKeZ+WGYbnLpw== X-Received: by 10.46.93.157 with SMTP id v29mr1624028lje.177.1511972425591; Wed, 29 Nov 2017 08:20:25 -0800 (PST) Received: from localhost.localdomain ([195.254.138.66]) by smtp.gmail.com with ESMTPSA id b25sm439828lje.14.2017.11.29.08.20.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 29 Nov 2017 08:20:25 -0800 (PST) From: Vasyl Gomonovych <gomonovych@gmail.com> To: linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-media@vger.kernel.org Subject: [PATCH] media: exynos4-is: Use PTR_ERR_OR_ZERO() Date: Wed, 29 Nov 2017 17:20:16 +0100 Message-Id: <1511972416-25401-1-git-send-email-gomonovych@gmail.com> X-Mailer: git-send-email 1.9.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171129_162047_814853_6646F3CA X-CRM114-Status: GOOD ( 12.78 ) 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: Vasyl Gomonovych <gomonovych@gmail.com>, linux-kernel@vger.kernel.org, Krzysztof Kozlowski <krzk@kernel.org>, Kyungmin Park <kyungmin.park@samsung.com>, Kukjin Kim <kgene@kernel.org>, Sylwester Nawrocki <s.nawrocki@samsung.com>, Mauro Carvalho Chehab <mchehab@kernel.org> MIME-Version: 1.0 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 |
diff --git a/drivers/media/platform/exynos4-is/fimc-lite.c b/drivers/media/platform/exynos4-is/fimc-lite.c index 4a3c9948ca54..5db572aa8899 100644 --- a/drivers/media/platform/exynos4-is/fimc-lite.c +++ b/drivers/media/platform/exynos4-is/fimc-lite.c @@ -1462,10 +1462,7 @@ static void fimc_lite_clk_put(struct fimc_lite *fimc) static int fimc_lite_clk_get(struct fimc_lite *fimc) { fimc->clock = clk_get(&fimc->pdev->dev, FLITE_CLK_NAME); - if (IS_ERR(fimc->clock)) - return PTR_ERR(fimc->clock); - - return 0; + return PTR_ERR_OR_ZERO(fimc->clock); } static const struct of_device_id flite_of_match[];
Fix ptr_ret.cocci warnings: drivers/media/platform/exynos4-is/fimc-lite.c:1465: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 Signed-off-by: Vasyl Gomonovych <gomonovych@gmail.com> --- drivers/media/platform/exynos4-is/fimc-lite.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-)