From patchwork Tue Jul 22 10:56:26 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kishon Vijay Abraham I X-Patchwork-Id: 34038 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-oa0-f70.google.com (mail-oa0-f70.google.com [209.85.219.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 3FE1420540 for ; Tue, 22 Jul 2014 10:57:28 +0000 (UTC) Received: by mail-oa0-f70.google.com with SMTP id eb12sf48885782oac.9 for ; Tue, 22 Jul 2014 03:57:27 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe:content-type; bh=i0hp4zUawMliNQwvf0yJ0vRWXgDIwhio8nI+PpF6RKI=; b=jiTvAVl3/r1bjGiJDNsNJh4hzuGiFcCtOjXlin6CjCQsD9JQSc3MH61mDHGypq2/5l s3b8rTl40VWcVBljHlNiJzdVpFQMxrz5nCWpPBrdeRCgPkIR07psuJysYmxbcR1DmoVi tHYcwH7Dpcs6n4syr2jYcOMYzDWnn3xRKaWrbfkV9KG7Bn2W+srOFI5scbbp6KA+ZuGB 9Vih0HmfTnhM4yev2PfJ3n2CPNgz8aRl1L2gfX2HcDDgUjpf/NYTH4TkOBx3Rb74ojdu uvRIgeugcAl54J96UnNxfmYC2vhOnE3gHbJKc/QKCDurlTnWdhvNpcsMvtQiJqdDASF6 Qg5A== X-Gm-Message-State: ALoCoQlqYTdz7HKSqHnl5V1KnmRdtzAgvNq3pih7TaPH00fmpRUwjPPdN4jZwZbHIbeqPX5Lo65b X-Received: by 10.43.149.193 with SMTP id kl1mr6991876icc.5.1406026647771; Tue, 22 Jul 2014 03:57:27 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.105.183 with SMTP id c52ls1477092qgf.60.gmail; Tue, 22 Jul 2014 03:57:27 -0700 (PDT) X-Received: by 10.52.166.10 with SMTP id zc10mr17730581vdb.61.1406026647658; Tue, 22 Jul 2014 03:57:27 -0700 (PDT) Received: from mail-vc0-f173.google.com (mail-vc0-f173.google.com [209.85.220.173]) by mx.google.com with ESMTPS id xq7si18188veb.103.2014.07.22.03.57.27 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 22 Jul 2014 03:57:27 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.173 as permitted sender) client-ip=209.85.220.173; Received: by mail-vc0-f173.google.com with SMTP id hy10so14660539vcb.18 for ; Tue, 22 Jul 2014 03:57:27 -0700 (PDT) X-Received: by 10.52.248.146 with SMTP id ym18mr32858883vdc.8.1406026647562; Tue, 22 Jul 2014 03:57:27 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.221.37.5 with SMTP id tc5csp185642vcb; Tue, 22 Jul 2014 03:57:27 -0700 (PDT) X-Received: by 10.68.102.34 with SMTP id fl2mr31646767pbb.2.1406026646706; Tue, 22 Jul 2014 03:57:26 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id dn2si8668784pdb.500.2014.07.22.03.57.22; Tue, 22 Jul 2014 03:57:22 -0700 (PDT) Received-SPF: none (google.com: linux-kernel-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754332AbaGVK5U (ORCPT + 12 others); Tue, 22 Jul 2014 06:57:20 -0400 Received: from bear.ext.ti.com ([192.94.94.41]:46569 "EHLO bear.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753754AbaGVK5P (ORCPT ); Tue, 22 Jul 2014 06:57:15 -0400 Received: from dflxv15.itg.ti.com ([128.247.5.124]) by bear.ext.ti.com (8.13.7/8.13.7) with ESMTP id s6MAvEqU022935; Tue, 22 Jul 2014 05:57:14 -0500 Received: from DLEE71.ent.ti.com (dlee71.ent.ti.com [157.170.170.114]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id s6MAvDE7018046; Tue, 22 Jul 2014 05:57:14 -0500 Received: from dlep32.itg.ti.com (157.170.170.100) by DLEE71.ent.ti.com (157.170.170.114) with Microsoft SMTP Server id 14.3.174.1; Tue, 22 Jul 2014 05:57:13 -0500 Received: from localhost.localdomain (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep32.itg.ti.com (8.14.3/8.13.8) with ESMTP id s6MAv7qg027221; Tue, 22 Jul 2014 05:57:12 -0500 From: Kishon Vijay Abraham I To: CC: , Subject: [PATCH 03/28] phy: exynos-mipi-video: Use PTR_ERR_OR_ZERO Date: Tue, 22 Jul 2014 16:26:26 +0530 Message-ID: <1406026611-30493-4-git-send-email-kishon@ti.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1406026611-30493-1-git-send-email-kishon@ti.com> References: <1406026611-30493-1-git-send-email-kishon@ti.com> MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: kishon@ti.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.173 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , From: Sachin Kamat PTR_ERR_OR_ZERO simplifies the code. Signed-off-by: Sachin Kamat Cc: Sylwester Nawrocki Acked-by: Hans de Goede Signed-off-by: Kishon Vijay Abraham I --- drivers/phy/phy-exynos-mipi-video.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/phy/phy-exynos-mipi-video.c b/drivers/phy/phy-exynos-mipi-video.c index ff02668..6d6bcf5 100644 --- a/drivers/phy/phy-exynos-mipi-video.c +++ b/drivers/phy/phy-exynos-mipi-video.c @@ -9,6 +9,7 @@ * published by the Free Software Foundation. */ +#include #include #include #include @@ -149,10 +150,8 @@ static int exynos_mipi_video_phy_probe(struct platform_device *pdev) phy_provider = devm_of_phy_provider_register(dev, exynos_mipi_video_phy_xlate); - if (IS_ERR(phy_provider)) - return PTR_ERR(phy_provider); - return 0; + return PTR_ERR_OR_ZERO(phy_provider); } static const struct of_device_id exynos_mipi_video_phy_of_match[] = {