From patchwork Tue Jul 22 10:56:25 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: 34061 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-vc0-f200.google.com (mail-vc0-f200.google.com [209.85.220.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id AF5E420540 for ; Tue, 22 Jul 2014 11:03:49 +0000 (UTC) Received: by mail-vc0-f200.google.com with SMTP id hq11sf21549668vcb.11 for ; Tue, 22 Jul 2014 04:03:47 -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=KxSsvEB8UwlZAoeDbL/NGCTPTLxAKrUWt2zdwjYTAiE=; b=QgwGiTCXqpdTU/idgwVKoiLYIuzGcCBdCTFnxj3hngrvg9dNlWp4KdYcKb9M8FEznr BALRwp1WzhQJG9s97RozQ2WlFus8pwrdCMXnwWnpmBa+7BorYCYakKFTFpZEy7s7z6Hi KQXnveKrjTZ2w5RKBdfgbVmF2sThbk7Ux6sKsWBtkNuaRA2xAD4SCI+Owm83D0pZatgb ept1awI0UPzAhUiwqUS8/60P5nKcTc+yEzwgv8GL6Xg6Gk8DqtiwWUBkWGVE1HAcjByN gXa5slHTqe1GTQ/xK9xBPcoYTxmbi7eXQm2JxOxj81AnS+fCWo0BXfkeRB4dVH6HE0gO zAnA== X-Gm-Message-State: ALoCoQnd7Ad+Avmzn4GI/WjABC82e6f9U/5COXpXIQU0Yewdd+8W4UXhmQhAZR+mylUxSMQCBDXQ X-Received: by 10.52.231.97 with SMTP id tf1mr13643485vdc.3.1406027027667; Tue, 22 Jul 2014 04:03:47 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.91.199 with SMTP id z65ls1127284qgd.94.gmail; Tue, 22 Jul 2014 04:03:47 -0700 (PDT) X-Received: by 10.220.160.67 with SMTP id m3mr19278965vcx.56.1406027027533; Tue, 22 Jul 2014 04:03:47 -0700 (PDT) Received: from mail-vc0-f179.google.com (mail-vc0-f179.google.com [209.85.220.179]) by mx.google.com with ESMTPS id mx3si56606vcb.63.2014.07.22.04.03.47 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 22 Jul 2014 04:03:47 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.179 as permitted sender) client-ip=209.85.220.179; Received: by mail-vc0-f179.google.com with SMTP id hq11so12829372vcb.24 for ; Tue, 22 Jul 2014 04:03:47 -0700 (PDT) X-Received: by 10.221.47.9 with SMTP id uq9mr21364341vcb.48.1406027027404; Tue, 22 Jul 2014 04:03:47 -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 tc5csp186077vcb; Tue, 22 Jul 2014 04:03:46 -0700 (PDT) X-Received: by 10.66.100.170 with SMTP id ez10mr32220559pab.12.1406027026346; Tue, 22 Jul 2014 04:03:46 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ok13si33679pdb.134.2014.07.22.04.03.45; Tue, 22 Jul 2014 04:03:45 -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 S1754216AbaGVK5S (ORCPT + 12 others); Tue, 22 Jul 2014 06:57:18 -0400 Received: from arroyo.ext.ti.com ([192.94.94.40]:56754 "EHLO arroyo.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753064AbaGVK5N (ORCPT ); Tue, 22 Jul 2014 06:57:13 -0400 Received: from dflxv15.itg.ti.com ([128.247.5.124]) by arroyo.ext.ti.com (8.13.7/8.13.7) with ESMTP id s6MAvCso005507; Tue, 22 Jul 2014 05:57:12 -0500 Received: from DLEE70.ent.ti.com (dlemailx.itg.ti.com [157.170.170.113]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id s6MAvCoY018031; Tue, 22 Jul 2014 05:57:12 -0500 Received: from dlep32.itg.ti.com (157.170.170.100) by DLEE70.ent.ti.com (157.170.170.113) with Microsoft SMTP Server id 14.3.174.1; Tue, 22 Jul 2014 05:57:12 -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 s6MAv7qf027221; Tue, 22 Jul 2014 05:57:11 -0500 From: Kishon Vijay Abraham I To: CC: , Subject: [PATCH 02/28] phy: exynos-dp-video: Use PTR_ERR_OR_ZERO Date: Tue, 22 Jul 2014 16:26:25 +0530 Message-ID: <1406026611-30493-3-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.179 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: Jingoo Han Acked-by: Hans de Goede Signed-off-by: Kishon Vijay Abraham I --- drivers/phy/phy-exynos-dp-video.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/phy/phy-exynos-dp-video.c b/drivers/phy/phy-exynos-dp-video.c index 0786fef..098f822 100644 --- a/drivers/phy/phy-exynos-dp-video.c +++ b/drivers/phy/phy-exynos-dp-video.c @@ -9,6 +9,7 @@ * published by the Free Software Foundation. */ +#include #include #include #include @@ -84,10 +85,8 @@ static int exynos_dp_video_phy_probe(struct platform_device *pdev) phy_set_drvdata(phy, state); phy_provider = devm_of_phy_provider_register(dev, of_phy_simple_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_dp_video_phy_of_match[] = {