From patchwork Fri Oct 17 17:16:46 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Felipe Balbi X-Patchwork-Id: 38962 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f197.google.com (mail-lb0-f197.google.com [209.85.217.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 8A021202DB for ; Fri, 17 Oct 2014 17:19:22 +0000 (UTC) Received: by mail-lb0-f197.google.com with SMTP id p9sf724382lbv.4 for ; Fri, 17 Oct 2014 10:19:21 -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=HwECQrTIStYWyhZVYQLrIGyxxrhB1eBo/JEvHv+2MAY=; b=kUG0CxL5f7c+ztWU0nRbiPliO38CghC34ONVv2ZtJKUAi1wdtT/exTHNsk87ZtEqYm Bfxs5BSE3QlzCxOYCx3Z9O68FZ1NHlSQVV6hQIOc4CODevCr7VlgIYns9qS8BLh386Xl raFp0KpIWejiOGE5D3m2hrKZ9jR9F5zVFpBwv00lqVZRZggxnbFtU5BzcMsqXDZVkfMO 4xGid7TFNp/ICDIl3Ef1WxMY7sKrDI6t/Q4Grt5zKWB1UGOetoTguSAQuVdz5jxOwSTR wOsT3S8kXf5rLxy2TMOzLdTne6fM7aor8C/UG3VVLtdqM6xiIRVdor0h6ZZx/FJqICDN vuVQ== X-Gm-Message-State: ALoCoQmWzOpLYJJ7VyDKF1cP6x5j2+T37JS0ykmeGlLtBrTHAM627QiBJttZ26R1OfYTLJyUALUU X-Received: by 10.112.137.202 with SMTP id qk10mr650176lbb.11.1413566361132; Fri, 17 Oct 2014 10:19:21 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.28.4 with SMTP id x4ls277123lag.42.gmail; Fri, 17 Oct 2014 10:19:21 -0700 (PDT) X-Received: by 10.153.6.38 with SMTP id cr6mr10489770lad.52.1413566360994; Fri, 17 Oct 2014 10:19:20 -0700 (PDT) Received: from mail-la0-f44.google.com (mail-la0-f44.google.com. [209.85.215.44]) by mx.google.com with ESMTPS id v8si2961616lag.107.2014.10.17.10.19.20 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 17 Oct 2014 10:19:20 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.44 as permitted sender) client-ip=209.85.215.44; Received: by mail-la0-f44.google.com with SMTP id hs14so1066326lab.31 for ; Fri, 17 Oct 2014 10:19:20 -0700 (PDT) X-Received: by 10.112.97.135 with SMTP id ea7mr10375875lbb.46.1413566360921; Fri, 17 Oct 2014 10:19:20 -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.112.84.229 with SMTP id c5csp268275lbz; Fri, 17 Oct 2014 10:19:20 -0700 (PDT) X-Received: by 10.66.222.100 with SMTP id ql4mr9748194pac.123.1413566348167; Fri, 17 Oct 2014 10:19:08 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id tf2si376641pac.129.2014.10.17.10.19.07 for ; Fri, 17 Oct 2014 10:19:08 -0700 (PDT) Received-SPF: none (google.com: linux-usb-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 S1753695AbaJQRSX (ORCPT + 3 others); Fri, 17 Oct 2014 13:18:23 -0400 Received: from arroyo.ext.ti.com ([192.94.94.40]:56002 "EHLO arroyo.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753671AbaJQRSP (ORCPT ); Fri, 17 Oct 2014 13:18:15 -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 s9HHI6U2029288; Fri, 17 Oct 2014 12:18:06 -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 s9HHI6CI029698; Fri, 17 Oct 2014 12:18:06 -0500 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; Fri, 17 Oct 2014 12:18:07 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep33.itg.ti.com (8.14.3/8.13.8) with ESMTP id s9HHI5Wg030389; Fri, 17 Oct 2014 12:18:06 -0500 From: Felipe Balbi To: Linux USB Mailing List CC: Greg KH , , Paul Zimmerman , , , , , , , Peter Chen , Felipe Balbi Subject: [PATCH 39/67] usb: phy: phy-msm-usb: delete unnecessary 'out of memory' messages Date: Fri, 17 Oct 2014 12:16:46 -0500 Message-ID: <1413566234-13537-40-git-send-email-balbi@ti.com> X-Mailer: git-send-email 2.1.0.GIT In-Reply-To: <1413566234-13537-1-git-send-email-balbi@ti.com> References: <1413566234-13537-1-git-send-email-balbi@ti.com> MIME-Version: 1.0 Sender: linux-usb-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-usb@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: balbi@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.215.44 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: Peter Chen The memory subsystem has already had similar message for it. Signed-off-by: Peter Chen Signed-off-by: Felipe Balbi --- drivers/usb/phy/phy-msm-usb.c | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/drivers/usb/phy/phy-msm-usb.c b/drivers/usb/phy/phy-msm-usb.c index 7843ef7..471e69d 100644 --- a/drivers/usb/phy/phy-msm-usb.c +++ b/drivers/usb/phy/phy-msm-usb.c @@ -1505,10 +1505,8 @@ static int msm_otg_read_dt(struct platform_device *pdev, struct msm_otg *motg) } pdata->phy_init_seq = devm_kzalloc(&pdev->dev, len, GFP_KERNEL); - if (!pdata->phy_init_seq) { - dev_warn(&pdev->dev, "No space for PHY init sequence\n"); + if (!pdata->phy_init_seq) return 0; - } ret = of_property_read_u32_array(node, "qcom,phy-init-sequence", pdata->phy_init_seq, words); @@ -1530,10 +1528,8 @@ static int msm_otg_probe(struct platform_device *pdev) void __iomem *phy_select; motg = devm_kzalloc(&pdev->dev, sizeof(struct msm_otg), GFP_KERNEL); - if (!motg) { - dev_err(&pdev->dev, "unable to allocate msm_otg\n"); + if (!motg) return -ENOMEM; - } pdata = dev_get_platdata(&pdev->dev); if (!pdata) { @@ -1546,10 +1542,8 @@ static int msm_otg_probe(struct platform_device *pdev) motg->phy.otg = devm_kzalloc(&pdev->dev, sizeof(struct usb_otg), GFP_KERNEL); - if (!motg->phy.otg) { - dev_err(&pdev->dev, "unable to allocate msm_otg\n"); + if (!motg->phy.otg) return -ENOMEM; - } phy = &motg->phy; phy->dev = &pdev->dev;