From patchwork Fri Oct 17 17:16:31 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Felipe Balbi X-Patchwork-Id: 38933 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f69.google.com (mail-la0-f69.google.com [209.85.215.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id A1186202DB for ; Fri, 17 Oct 2014 17:18:10 +0000 (UTC) Received: by mail-la0-f69.google.com with SMTP id q1sf719758lam.4 for ; Fri, 17 Oct 2014 10:18:09 -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=lDfhekN3kSZbeHr/M04qpusmgtBqItcgpJAtAnPD0LI=; b=LoO3sNdlyKLypE04EXUSk89S2Gygm/iNEddjyc5s2e94YtZxVg1RKuBeVm7cOgdW7B eefGTj1p7WrTCbqhQYA9CfvuhHhrkGesbvUVrEeVW6Lw+04h3jawTxqPOSrPjyOqDiPX r4NWwIE0rmcSNRhJnfIb+AQW6FdkRWo09l8ORYtA629eWZWg+brawiOQTqDLh/pckFnN 6+dCTP1LDoi1kMv+aT5P4EyIzVe+dGn0IYLw2c1NNW2p1DSMDOtLh1d7ARDb/D74SoRW Urvdtm0GmtKiU7cWOLUznJnTF9MH7vX7w4pAeSpEVOKgsp6zAU4KV/NEl22ulQ49TLw6 PPZg== X-Gm-Message-State: ALoCoQmUKTCMWfwuFMBdeONzn1VFUwPCkcruw+CMgixnBIcBR8EzeEJnLkUEzQ8bT91BE60xtLQy X-Received: by 10.181.29.105 with SMTP id jv9mr55375wid.1.1413566289404; Fri, 17 Oct 2014 10:18:09 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.5.72 with SMTP id q8ls230466laq.98.gmail; Fri, 17 Oct 2014 10:18:09 -0700 (PDT) X-Received: by 10.112.201.201 with SMTP id kc9mr3164478lbc.76.1413566289112; Fri, 17 Oct 2014 10:18:09 -0700 (PDT) Received: from mail-la0-f54.google.com (mail-la0-f54.google.com. [209.85.215.54]) by mx.google.com with ESMTPS id dy7si2968604lbc.95.2014.10.17.10.18.09 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 17 Oct 2014 10:18:09 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.54 as permitted sender) client-ip=209.85.215.54; Received: by mail-la0-f54.google.com with SMTP id gm9so1084398lab.13 for ; Fri, 17 Oct 2014 10:18:09 -0700 (PDT) X-Received: by 10.152.120.200 with SMTP id le8mr10016742lab.67.1413566288991; Fri, 17 Oct 2014 10:18:08 -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 c5csp268065lbz; Fri, 17 Oct 2014 10:18:08 -0700 (PDT) X-Received: by 10.70.89.48 with SMTP id bl16mr9865180pdb.29.1413566287308; Fri, 17 Oct 2014 10:18:07 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b7si1686618pdm.75.2014.10.17.10.18.06 for ; Fri, 17 Oct 2014 10:18:07 -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 S1753564AbaJQRSB (ORCPT + 3 others); Fri, 17 Oct 2014 13:18:01 -0400 Received: from devils.ext.ti.com ([198.47.26.153]:36370 "EHLO devils.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753526AbaJQRR7 (ORCPT ); Fri, 17 Oct 2014 13:17:59 -0400 Received: from dflxv15.itg.ti.com ([128.247.5.124]) by devils.ext.ti.com (8.13.7/8.13.7) with ESMTP id s9HHHpxC028982; Fri, 17 Oct 2014 12:17:51 -0500 Received: from DFLE73.ent.ti.com (dfle73.ent.ti.com [128.247.5.110]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id s9HHHpuZ029389; Fri, 17 Oct 2014 12:17:51 -0500 Received: from dflp32.itg.ti.com (10.64.6.15) by DFLE73.ent.ti.com (128.247.5.110) with Microsoft SMTP Server id 14.3.174.1; Fri, 17 Oct 2014 12:17:51 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp32.itg.ti.com (8.14.3/8.13.8) with ESMTP id s9HHHoJI030941; Fri, 17 Oct 2014 12:17:51 -0500 From: Felipe Balbi To: Linux USB Mailing List CC: Greg KH , , Paul Zimmerman , , , , , , , Peter Chen , Felipe Balbi Subject: [PATCH 24/67] usb: gadget: mv_udc_core: delete unnecessary 'out of memory' messages Date: Fri, 17 Oct 2014 12:16:31 -0500 Message-ID: <1413566234-13537-25-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.54 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/gadget/udc/mv_udc_core.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/drivers/usb/gadget/udc/mv_udc_core.c b/drivers/usb/gadget/udc/mv_udc_core.c index 3c5db80..cebb948 100644 --- a/drivers/usb/gadget/udc/mv_udc_core.c +++ b/drivers/usb/gadget/udc/mv_udc_core.c @@ -2107,10 +2107,8 @@ static int mv_udc_probe(struct platform_device *pdev) } udc = devm_kzalloc(&pdev->dev, sizeof(*udc), GFP_KERNEL); - if (udc == NULL) { - dev_err(&pdev->dev, "failed to allocate memory for udc\n"); + if (udc == NULL) return -ENOMEM; - } udc->done = &release_done; udc->pdata = dev_get_platdata(&pdev->dev); @@ -2207,7 +2205,6 @@ static int mv_udc_probe(struct platform_device *pdev) size = udc->max_eps * sizeof(struct mv_ep) *2; udc->eps = devm_kzalloc(&pdev->dev, size, GFP_KERNEL); if (udc->eps == NULL) { - dev_err(&pdev->dev, "allocate ep memory failed\n"); retval = -ENOMEM; goto err_destroy_dma; } @@ -2216,7 +2213,6 @@ static int mv_udc_probe(struct platform_device *pdev) udc->status_req = devm_kzalloc(&pdev->dev, sizeof(struct mv_req), GFP_KERNEL); if (!udc->status_req) { - dev_err(&pdev->dev, "allocate status_req memory failed\n"); retval = -ENOMEM; goto err_destroy_dma; }