From patchwork Fri Oct 17 17:16:39 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Felipe Balbi X-Patchwork-Id: 38936 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f200.google.com (mail-wi0-f200.google.com [209.85.212.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 50B5120973 for ; Fri, 17 Oct 2014 17:18:23 +0000 (UTC) Received: by mail-wi0-f200.google.com with SMTP id h11sf818388wiw.11 for ; Fri, 17 Oct 2014 10:18:22 -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=nycnjGsY7ouWTwx+NbYSb7KamQwSyBVuOOhPUywXUxA=; b=Lt1yTwfAzqVqGk4fnSGwCqqa+GhDIqj1GP+0/V0fLWyR32Om0TDCN3rjRVlISIoGsj aS8LKBxLYpqTEZfuUFPAtwdPVy53njUNUnOA6GG7JO1eC1DA01n1gRcdlk1BXY98BX72 SVY4mpdHLprfDQcByaTDTMFF2+pf12C0nkzaUzqLloAZrNvQvNB3b3PK0sdGXVoaqAa9 3CftqCSFDgUN7+0/vhskYNIitTAKPgg/HtX3C7b/sRcMz0KzcTZezeJSdAwy7xsbgcJN 1ANwDuUtpo4s4rF5Fmw/li1BNfUViL3pj0nEYB9gxkg8eYFhlkzD0EotBYKvKeVBOdb7 5V1A== X-Gm-Message-State: ALoCoQk670erObCZESQ2/K4xzSVV38hqjjAcuqMXxNGvWeR+k67VMmpxa5bdPAs2NhTCS95kEl61 X-Received: by 10.152.3.168 with SMTP id d8mr1604529lad.0.1413566302546; Fri, 17 Oct 2014 10:18:22 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.27.97 with SMTP id s1ls282544lag.81.gmail; Fri, 17 Oct 2014 10:18:22 -0700 (PDT) X-Received: by 10.152.21.226 with SMTP id y2mr10315295lae.70.1413566302395; Fri, 17 Oct 2014 10:18:22 -0700 (PDT) Received: from mail-lb0-f180.google.com (mail-lb0-f180.google.com. [209.85.217.180]) by mx.google.com with ESMTPS id jw6si2965032lbc.101.2014.10.17.10.18.22 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 17 Oct 2014 10:18:22 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.180 as permitted sender) client-ip=209.85.217.180; Received: by mail-lb0-f180.google.com with SMTP id n15so1018025lbi.25 for ; Fri, 17 Oct 2014 10:18:22 -0700 (PDT) X-Received: by 10.152.29.8 with SMTP id f8mr10288352lah.56.1413566302326; Fri, 17 Oct 2014 10:18:22 -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 c5csp268098lbz; Fri, 17 Oct 2014 10:18:21 -0700 (PDT) X-Received: by 10.69.15.164 with SMTP id fp4mr9714091pbd.37.1413566299742; Fri, 17 Oct 2014 10:18:19 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id jc4si1716313pbd.35.2014.10.17.10.18.19 for ; Fri, 17 Oct 2014 10:18:19 -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 S1753655AbaJQRSK (ORCPT + 3 others); Fri, 17 Oct 2014 13:18:10 -0400 Received: from devils.ext.ti.com ([198.47.26.153]:36403 "EHLO devils.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753356AbaJQRSH (ORCPT ); Fri, 17 Oct 2014 13:18:07 -0400 Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by devils.ext.ti.com (8.13.7/8.13.7) with ESMTP id s9HHHxO3029008; Fri, 17 Oct 2014 12:17:59 -0500 Received: from DLEE70.ent.ti.com (dlemailx.itg.ti.com [157.170.170.113]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id s9HHHxvp000857; Fri, 17 Oct 2014 12:17:59 -0500 Received: from dlep33.itg.ti.com (157.170.170.75) by DLEE70.ent.ti.com (157.170.170.113) with Microsoft SMTP Server id 14.3.174.1; Fri, 17 Oct 2014 12:17:59 -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 s9HHHwnp030213; Fri, 17 Oct 2014 12:17:59 -0500 From: Felipe Balbi To: Linux USB Mailing List CC: Greg KH , , Paul Zimmerman , , , , , , , Peter Chen , Felipe Balbi Subject: [PATCH 32/67] usb: musb: tusb6010: delete unnecessary 'out of memory' messages Date: Fri, 17 Oct 2014 12:16:39 -0500 Message-ID: <1413566234-13537-33-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.217.180 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/musb/tusb6010.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/usb/musb/tusb6010.c b/drivers/usb/musb/tusb6010.c index 2daa779..25f02df 100644 --- a/drivers/usb/musb/tusb6010.c +++ b/drivers/usb/musb/tusb6010.c @@ -1164,10 +1164,8 @@ static int tusb_probe(struct platform_device *pdev) int ret; glue = devm_kzalloc(&pdev->dev, sizeof(*glue), GFP_KERNEL); - if (!glue) { - dev_err(&pdev->dev, "failed to allocate glue context\n"); + if (!glue) return -ENOMEM; - } glue->dev = &pdev->dev;