From patchwork Sat Mar 8 09:29:04 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: 25924 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ie0-f198.google.com (mail-ie0-f198.google.com [209.85.223.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id BE6B82055F for ; Sat, 8 Mar 2014 09:41:30 +0000 (UTC) Received: by mail-ie0-f198.google.com with SMTP id to1sf19740710ieb.9 for ; Sat, 08 Mar 2014 01:41:30 -0800 (PST) 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: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=Hi4vuA9QI6muYjL0VFhrPOSFsh9C0o2rZTWLbILyKJg=; b=eGIAc+DZZCLxBUjfnCJr648oCH3wx/g9xYttYD84r6NSesYQ5TrAdCqZbBcHbdWxQG 17ZCNpSQjIploomTpE6bofzHJZXOSuGDDj8urq7wuN3dkeBp+gZ0WXueWQwqA33LMXAH cx0TKV0PFhAZmUgZOpLM4qt+4E2nXgeOgA9elrscbYW6YvChrVGjCfBIp/t8SACVAMTa iKH0wFWcggGYXyu/+1xVtLHkOIGDXUP0r7jD+zMyAzX5DU4YZ+LgGr9Ysu+lDXDCWhgK qVtGnLLHjr9iLwyfPE99zgQcN7KM2Z8hGKmt8G/Xvtf04kJHOUyh0DK+l2rEzSyfiJko YvKA== X-Gm-Message-State: ALoCoQn56oV7M9kw9VMsOZXLYECcsFkvdxOODFGHzzvvPyyszJQxqCLZXsKWXYwsSftyxKaP9uAR X-Received: by 10.182.158.4 with SMTP id wq4mr8999334obb.18.1394271690317; Sat, 08 Mar 2014 01:41:30 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.29.134 with SMTP id b6ls1626248qgb.91.gmail; Sat, 08 Mar 2014 01:41:30 -0800 (PST) X-Received: by 10.220.95.139 with SMTP id d11mr6995786vcn.21.1394271690162; Sat, 08 Mar 2014 01:41:30 -0800 (PST) Received: from mail-ve0-f181.google.com (mail-ve0-f181.google.com [209.85.128.181]) by mx.google.com with ESMTPS id a8si2960306vej.55.2014.03.08.01.41.30 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 08 Mar 2014 01:41:30 -0800 (PST) Received-SPF: neutral (google.com: 209.85.128.181 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.128.181; Received: by mail-ve0-f181.google.com with SMTP id oy12so5188470veb.26 for ; Sat, 08 Mar 2014 01:41:30 -0800 (PST) X-Received: by 10.221.34.211 with SMTP id st19mr13882194vcb.5.1394271690073; Sat, 08 Mar 2014 01:41:30 -0800 (PST) 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.220.78.9 with SMTP id i9csp173291vck; Sat, 8 Mar 2014 01:41:29 -0800 (PST) X-Received: by 10.66.161.38 with SMTP id xp6mr27413890pab.145.1394271688714; Sat, 08 Mar 2014 01:41:28 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id zj6si10851934pac.291.2014.03.08.01.41.28; Sat, 08 Mar 2014 01:41:28 -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; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752897AbaCHJjJ (ORCPT + 26 others); Sat, 8 Mar 2014 04:39:09 -0500 Received: from comal.ext.ti.com ([198.47.26.152]:35308 "EHLO comal.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751097AbaCHJ3h (ORCPT ); Sat, 8 Mar 2014 04:29:37 -0500 Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by comal.ext.ti.com (8.13.7/8.13.7) with ESMTP id s289TbY4032204; Sat, 8 Mar 2014 03:29:37 -0600 Received: from DLEE70.ent.ti.com (dlee70.ent.ti.com [157.170.170.113]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id s289TbEd016161; Sat, 8 Mar 2014 03:29:37 -0600 Received: from dflp33.itg.ti.com (10.64.6.16) by DLEE70.ent.ti.com (157.170.170.113) with Microsoft SMTP Server id 14.3.174.1; Sat, 8 Mar 2014 03:29:36 -0600 Received: from localhost.localdomain (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp33.itg.ti.com (8.14.3/8.13.8) with ESMTP id s289TUGY006693; Sat, 8 Mar 2014 03:29:35 -0600 From: Kishon Vijay Abraham I To: , , Subject: [PATCH 03/28] usb: phy: bcm-kona-usb2: Use PTR_ERR_OR_ZERO Date: Sat, 8 Mar 2014 14:59:04 +0530 Message-ID: <1394270969-11851-4-git-send-email-kishon@ti.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1394270969-11851-1-git-send-email-kishon@ti.com> References: <1394270969-11851-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=neutral (google.com: 209.85.128.181 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) 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: Matt Porter Signed-off-by: Kishon Vijay Abraham I --- drivers/phy/phy-bcm-kona-usb2.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/phy/phy-bcm-kona-usb2.c b/drivers/phy/phy-bcm-kona-usb2.c index efc5c1a..e94f5a6 100644 --- a/drivers/phy/phy-bcm-kona-usb2.c +++ b/drivers/phy/phy-bcm-kona-usb2.c @@ -128,10 +128,8 @@ static int bcm_kona_usb2_probe(struct platform_device *pdev) 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 bcm_kona_usb2_dt_ids[] = {