From patchwork Mon Feb 17 08:59:20 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: 24736 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pd0-f198.google.com (mail-pd0-f198.google.com [209.85.192.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 2E9D9202B2 for ; Mon, 17 Feb 2014 09:01:42 +0000 (UTC) Received: by mail-pd0-f198.google.com with SMTP id v10sf33514208pde.5 for ; Mon, 17 Feb 2014 01:01:42 -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: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=roheqWEgBtwX9nDIbDRhLTouPcrk1j521DEs1tMd/r0=; b=k3dhqGzkYFO6zJtz+AuRamEskSM8W4KHqkmTbFhFHmjwckpD6/RIVQKBIxtJEB/3qp qfE9FkzbXfNb9OPDR061mPHAvpUKTx37iB0ryteFCVgjulOTPYSRDPQw0iBQt2oukNhR t9+b8FH43htjzbIAnIjOVcDDEPyFah/DtYRGVX8+3m1cbayYzquaYE9Ol4aOYXXLYAsO 7veQv/yyXsLaOmljh/zmoBNilL+nE5zKX7fEYgV1HCJDqxl6Xy3V2bi5vgSpU98bLZg1 6qyu9KdNd54k5h1fSG2FBD6alYx3zCJptvoYczdh4Eq0ecDJ1suc0B5JY/NBMMgjO0ip OVjA== X-Gm-Message-State: ALoCoQkQ2H+dRLmq+lWewQzR91lLhvySV9HbLQWa4LHDnyTiIRmEQEF0+V2MxKepsEqovjz5gqYF X-Received: by 10.66.221.137 with SMTP id qe9mr9849937pac.4.1392627702083; Mon, 17 Feb 2014 01:01:42 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.37.135 with SMTP id r7ls919351qgr.25.gmail; Mon, 17 Feb 2014 01:01:41 -0800 (PST) X-Received: by 10.220.67.18 with SMTP id p18mr16335398vci.14.1392627701886; Mon, 17 Feb 2014 01:01:41 -0800 (PST) Received: from mail-ve0-f178.google.com (mail-ve0-f178.google.com [209.85.128.178]) by mx.google.com with ESMTPS id y6si4326899veb.139.2014.02.17.01.01.41 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 17 Feb 2014 01:01:41 -0800 (PST) Received-SPF: neutral (google.com: 209.85.128.178 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.178; Received: by mail-ve0-f178.google.com with SMTP id oy12so12102605veb.9 for ; Mon, 17 Feb 2014 01:01:41 -0800 (PST) X-Received: by 10.52.243.102 with SMTP id wx6mr13669037vdc.12.1392627701798; Mon, 17 Feb 2014 01:01:41 -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.174.196 with SMTP id u4csp122173vcz; Mon, 17 Feb 2014 01:01:41 -0800 (PST) X-Received: by 10.66.136.229 with SMTP id qd5mr25480525pab.118.1392627700934; Mon, 17 Feb 2014 01:01:40 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id yn1si1265718pab.342.2014.02.17.01.01.40; Mon, 17 Feb 2014 01:01:40 -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 S1752822AbaBQJBe (ORCPT + 27 others); Mon, 17 Feb 2014 04:01:34 -0500 Received: from comal.ext.ti.com ([198.47.26.152]:48152 "EHLO comal.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751911AbaBQI7d (ORCPT ); Mon, 17 Feb 2014 03:59:33 -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 s1H8xW4Z028417; Mon, 17 Feb 2014 02:59:32 -0600 Received: from DLEE71.ent.ti.com (dlee71.ent.ti.com [157.170.170.114]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id s1H8xWC5002026; Mon, 17 Feb 2014 02:59:32 -0600 Received: from dlep33.itg.ti.com (157.170.170.75) by DLEE71.ent.ti.com (157.170.170.114) with Microsoft SMTP Server id 14.3.174.1; Mon, 17 Feb 2014 02:59:31 -0600 Received: from a0393678ub.india.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep33.itg.ti.com (8.14.3/8.13.8) with ESMTP id s1H8xPkr001536; Mon, 17 Feb 2014 02:59:31 -0600 From: Kishon Vijay Abraham I To: , CC: Subject: [PATCH 3/8] usb: phy: bcm-kona-usb2: Use PTR_ERR_OR_ZERO Date: Mon, 17 Feb 2014 14:29:20 +0530 Message-ID: <1392627565-1829-4-git-send-email-kishon@ti.com> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1392627565-1829-1-git-send-email-kishon@ti.com> References: <1392627565-1829-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.178 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[] = {