Received: by 10.223.164.202 with SMTP id h10csp4569244wrb; Wed, 29 Nov 2017 08:21:35 -0800 (PST) X-Google-Smtp-Source: AGs4zMZrKSeMEEHvRytwEWZ9wQG9Izy+xdxlvLCSNggnFf4wDyQAkdzCsbSXK+ihDjTLbGNewZY/ X-Received: by 10.84.252.143 with SMTP id y15mr3509102pll.138.1511972495606; Wed, 29 Nov 2017 08:21:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511972495; cv=none; d=google.com; s=arc-20160816; b=acQfaA+g1mRQZodP08TfeWNmW6N/7QK0noyvC6SvVDsKfuE+dqmcCPHqarRFJx/e06 iBbPywlEFgg0tpWzTET9yDRwqAm3g+j2v/4F7f7zlpwM+lHeS1bZJMGwyc64u5MEVyut IZ/4lat3q7A37GnU/8mbTlQucl38KV3br4lh1NzHLtsG+xe7pu+xECaiR27oZuqTISVh uSBMxsBGh0uyOHU0rEnvZEmXLETsPwNtVBTJiNhRiY1VFaqhX3oP0JBq0oyY49q8szE6 YIbJJ/L8lG+qhSFgyZFp51wG8jsR9VukqH4X/qllritMmQM5diwltGTYcUVwq9bGw7ZR o0XQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=NWCyhbk6GcMEuN+CRWC7kHGGfxIKsIp1bJjZU+B3sW0=; b=hqJRHpF+1bW24aZh67+8eC8EEVmPaJ8YTe7jyKg/iIKdVZZzbBN/YNxD+vvOGA8MmG i5RdfRPJcML+PdrHX+YmAA5MItJeNlEoC/jD6o1peEemJKa/PkPnlxpOrIla9jrfVoAT PkcRsUwPrUX7K0IJy2rxRLAT+wfdh8vOPVZGGuXOvYD1F0u4kvgw/s/SizyyaFefEFze nbJFVtraEodcWzdzs7Yqi+utU0qW3x2jhP98L7lQm1B1ULcf7xjTS/OKESBpg3za9E5j jSQjixLGTRteG4eA/YgEDApaKA66XvqSz3MmUfUW2f7s6eTmMUeOFNKbpmaou8In3Hmf xvRA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=oHei7FeL; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c72si1592466pfe.65.2017.11.29.08.21.24; Wed, 29 Nov 2017 08:21:35 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=oHei7FeL; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755601AbdK2QUa (ORCPT + 69 others); Wed, 29 Nov 2017 11:20:30 -0500 Received: from mail-lf0-f67.google.com ([209.85.215.67]:44980 "EHLO mail-lf0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753706AbdK2QU1 (ORCPT ); Wed, 29 Nov 2017 11:20:27 -0500 Received: by mail-lf0-f67.google.com with SMTP id x204so4504118lfa.11; Wed, 29 Nov 2017 08:20:26 -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=m35FlcIf4pqlG/+XuoY/C+APOG7ELGBx/hWEjmNUibRPZdK02BbgLkmPhSmhyVvKtZ kijrPRlpMEs+qhP4Z4lE9jLEH+boAD8RGJTII6qBk0WJJLMQQfyRf03s/Y7B9vN/mBzU 6gsrBiL15MELBSuDo8uu/vSok7lQQaxhSPURh9qqIEfWhQt9Z5+WWdGJPugHClhbJ/fB zoV9ZxArLKhn+F5szCgte1+vtiyCD2Qvy1p3/gZRj9iNiboi7yjww8oBuVmGxZH6wubZ KCc4GTJqu/EZiX2Cb82dtkcUXf2DN8fNLqrQq75+udoe+lGglHVXEaMRWPBIyKgej1J/ w3Bg== X-Gm-Message-State: AJaThX7ZvNuIR5+9qLlOCrLz5xX/QHl4GdwtjMVWi2eG+6KzvDXyTOwm jyBsfBOfSgTk3YBLU/pAsDAjwmYn 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 To: linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-media@vger.kernel.org Cc: Vasyl Gomonovych , Kyungmin Park , Sylwester Nawrocki , Mauro Carvalho Chehab , Kukjin Kim , Krzysztof Kozlowski , linux-kernel@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 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- drivers/media/platform/exynos4-is/fimc-lite.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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[]; -- 1.9.1 From 1585438054105553002@xxx Wed Nov 29 21:39:12 +0000 2017 X-GM-THRID: 1585438054105553002 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread