From patchwork Mon Feb 3 08:25:05 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 24034 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ve0-f199.google.com (mail-ve0-f199.google.com [209.85.128.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id E08A120675 for ; Mon, 3 Feb 2014 08:30:07 +0000 (UTC) Received: by mail-ve0-f199.google.com with SMTP id oy12sf19695701veb.2 for ; Mon, 03 Feb 2014 00:30:06 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=8oZmq5OoWV1DwmNOQM+yXpukXckBZZbtFXhRYkDNRS0=; b=F48gHJNv9ArotsMLqygEzmKvT/GTsvvvoR084CtP+gINYakYTl9dYCUr+xAvVo7VPN MkTN2Lw//1U+zLUWYjwqcXBL6umgvt5tdJOBXxS836WhHWBManQZnt0ABfZ4TkDBFOHf yPxmiyg8RWuiBlzIvCwOUJ20SRE2eox194uJYQRQlJM8bG2ALJWj6LoeOovJ8hbL04JR mi06VZNsEjDVq83Pw+l8vdTvPnL/eFUZm5yBE1w6cmsimgFGTEmY5jhb50YR7bAAH+dC gyFtM4+JdZoe3aYrDuMfTQ9NdE6RWd8CrJmfpp2Jx/AfkYqlwrgY9edEsPHDD+5iWK+m utvA== X-Gm-Message-State: ALoCoQkZG4SBdI2/V8cgL6K9brGBYzn66+Bg7xZhaGjHoI3OeCvfTr5+yEQkriIcViaHPjznOhcX X-Received: by 10.224.55.129 with SMTP id u1mr1199917qag.6.1391416206708; Mon, 03 Feb 2014 00:30:06 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.80.149 with SMTP id c21ls1889176qgd.52.gmail; Mon, 03 Feb 2014 00:30:06 -0800 (PST) X-Received: by 10.52.107.35 with SMTP id gz3mr23055981vdb.8.1391416206630; Mon, 03 Feb 2014 00:30:06 -0800 (PST) Received: from mail-vb0-f47.google.com (mail-vb0-f47.google.com [209.85.212.47]) by mx.google.com with ESMTPS id sq4si6615150vdc.106.2014.02.03.00.30.06 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 03 Feb 2014 00:30:06 -0800 (PST) Received-SPF: neutral (google.com: 209.85.212.47 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.212.47; Received: by mail-vb0-f47.google.com with SMTP id p6so4395114vbe.6 for ; Mon, 03 Feb 2014 00:30:06 -0800 (PST) X-Received: by 10.220.178.73 with SMTP id bl9mr27548vcb.42.1391416206561; Mon, 03 Feb 2014 00:30:06 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.174.196 with SMTP id u4csp140497vcz; Mon, 3 Feb 2014 00:30:06 -0800 (PST) X-Received: by 10.68.203.102 with SMTP id kp6mr36005564pbc.14.1391416205663; Mon, 03 Feb 2014 00:30:05 -0800 (PST) Received: from mail-pb0-f41.google.com (mail-pb0-f41.google.com [209.85.160.41]) by mx.google.com with ESMTPS id oq9si19666699pac.64.2014.02.03.00.30.05 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 03 Feb 2014 00:30:05 -0800 (PST) Received-SPF: neutral (google.com: 209.85.160.41 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) client-ip=209.85.160.41; Received: by mail-pb0-f41.google.com with SMTP id up15so6818028pbc.0 for ; Mon, 03 Feb 2014 00:30:05 -0800 (PST) X-Received: by 10.66.243.103 with SMTP id wx7mr35915935pac.107.1391416205279; Mon, 03 Feb 2014 00:30:05 -0800 (PST) Received: from linaro.sisodomain.com ([115.113.119.130]) by mx.google.com with ESMTPSA id z10sm139078919pas.6.2014.02.03.00.30.02 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 03 Feb 2014 00:30:04 -0800 (PST) From: Sachin Kamat To: linux-kernel@vger.kernel.org Cc: kishon@ti.com, sachin.kamat@linaro.org, patches@linaro.org, Matt Porter Subject: [PATCH 3/3] usb: phy: bcm-kona-usb2: Use PTR_ERR_OR_ZERO Date: Mon, 3 Feb 2014 13:55:05 +0530 Message-Id: <1391415905-15341-3-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1391415905-15341-1-git-send-email-sachin.kamat@linaro.org> References: <1391415905-15341-1-git-send-email-sachin.kamat@linaro.org> X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: sachin.kamat@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.212.47 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 Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , PTR_ERR_OR_ZERO simplifies the code. Signed-off-by: Sachin Kamat Cc: Matt Porter --- 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 efc5c1a13a5d..e94f5a6a5645 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[] = {