Message ID | 1413566234-13537-28-git-send-email-balbi@ti.com |
---|---|
State | Accepted |
Commit | 3dc3b4e15e09d785f06c7122a9d3e564e7065119 |
Headers | show
Return-Path: <patchwork-forward+bncBC5M7T4HYEKRBLM7QWRAKGQEKEVVEXA@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ee0-f72.google.com (mail-ee0-f72.google.com [74.125.83.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 5DFC2202DB for <linaro@patches.linaro.org>; Fri, 17 Oct 2014 17:19:42 +0000 (UTC) Received: by mail-ee0-f72.google.com with SMTP id e51sf799530eek.7 for <linaro@patches.linaro.org>; Fri, 17 Oct 2014 10:19:41 -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=gcM6Ak7wocvWknIgyFiTLXSqR3Lh1g0Gc4CULoxj4kM=; b=R0h6AvsS803U8tcTC5Wn2aKvxAL5dVEIhw6To8BqjKGDex2I6iQjeHWqvt+J42AW7b 1ZcsDVrXzLgAABwFj1OknejVF3cWEjaFPfgEq9nErizypfdb3OrVrQWwAVJnM0jtSG5Q kGxbe0ea2K9QhWPB5gh+8I6Hxhix8vXvT9r5X+WJJfIAkolSBkFkn126hE3bOTeVIYbs IiDVLctU8yBde1Jv/r1B89mjd9M/ONenwK4OA3XjB5BPghwUcf69ZaPYuq+EgzkDb603 5Hl7nLUMpPIni6k7t/7c99wMrc45C+D6AV01eq/f2Q3g2gfaiKEZAbtYSH4nYu1MKS3s lF8w== X-Gm-Message-State: ALoCoQkOI/yuLocjCNJwcnUIiGpjF3SQHWkbNwoESTx34OftKvoYIJUuWtg4hlzpvC/SMkfMNYSz X-Received: by 10.180.182.164 with SMTP id ef4mr61330wic.0.1413566381534; Fri, 17 Oct 2014 10:19:41 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.36.169 with SMTP id r9ls235356laj.57.gmail; Fri, 17 Oct 2014 10:19:41 -0700 (PDT) X-Received: by 10.152.1.130 with SMTP id 2mr4644863lam.89.1413566381376; Fri, 17 Oct 2014 10:19:41 -0700 (PDT) Received: from mail-lb0-f178.google.com (mail-lb0-f178.google.com. [209.85.217.178]) by mx.google.com with ESMTPS id ay3si3063011lab.0.2014.10.17.10.19.41 for <patchwork-forward@linaro.org> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 17 Oct 2014 10:19:41 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.178 as permitted sender) client-ip=209.85.217.178; Received: by mail-lb0-f178.google.com with SMTP id w7so1033966lbi.23 for <patchwork-forward@linaro.org>; Fri, 17 Oct 2014 10:19:41 -0700 (PDT) X-Received: by 10.112.12.35 with SMTP id v3mr10246703lbb.80.1413566381316; Fri, 17 Oct 2014 10:19:41 -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 c5csp268356lbz; Fri, 17 Oct 2014 10:19:40 -0700 (PDT) X-Received: by 10.66.163.232 with SMTP id yl8mr9832416pab.26.1413566379078; Fri, 17 Oct 2014 10:19:39 -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.38 for <multiple recipients>; Fri, 17 Oct 2014 10:19:39 -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 S1753594AbaJQRSF (ORCPT <rfc822;amit.pundir@linaro.org> + 3 others); Fri, 17 Oct 2014 13:18:05 -0400 Received: from comal.ext.ti.com ([198.47.26.152]:55791 "EHLO comal.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753526AbaJQRSD (ORCPT <rfc822;linux-usb@vger.kernel.org>); Fri, 17 Oct 2014 13:18:03 -0400 Received: from dflxv15.itg.ti.com ([128.247.5.124]) by comal.ext.ti.com (8.13.7/8.13.7) with ESMTP id s9HHHsjS011715; Fri, 17 Oct 2014 12:17:54 -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 s9HHHs8r029419; Fri, 17 Oct 2014 12:17:54 -0500 Received: from dlep33.itg.ti.com (157.170.170.75) by DFLE73.ent.ti.com (128.247.5.110) with Microsoft SMTP Server id 14.3.174.1; Fri, 17 Oct 2014 12:17:54 -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 s9HHHrsO030191; Fri, 17 Oct 2014 12:17:54 -0500 From: Felipe Balbi <balbi@ti.com> To: Linux USB Mailing List <linux-usb@vger.kernel.org> CC: Greg KH <gregkh@linuxfoundation.org>, <m.szyprowski@samsung.com>, Paul Zimmerman <paul.zimmerman@synopsys.com>, <daniel@zonque.org>, <leoli@freescale.com>, <andrzej.p@samsung.com>, <r.baldyga@samsung.com>, <mina86@mina86.com>, <Peter.Chen@freescale.com>, Peter Chen <peter.chen@freescale.com>, Felipe Balbi <balbi@ti.com> Subject: [PATCH 27/67] usb: gadget: s3c-hsudc: delete unnecessary 'out of memory' messages Date: Fri, 17 Oct 2014 12:16:34 -0500 Message-ID: <1413566234-13537-28-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: <patchwork-forward.linaro.org> 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.178 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: <http://groups.google.com/a/linaro.org/group/patchwork-forward/post>, <mailto:patchwork-forward@linaro.org> List-Help: <http://support.google.com/a/linaro.org/bin/topic.py?topic=25838>, <mailto:patchwork-forward+help@linaro.org> List-Archive: <http://groups.google.com/a/linaro.org/group/patchwork-forward/> List-Unsubscribe: <mailto:googlegroups-manage+836684582541+unsubscribe@googlegroups.com>, <http://groups.google.com/a/linaro.org/group/patchwork-forward/subscribe> Content-Type: text/plain |
diff --git a/drivers/usb/gadget/udc/s3c-hsudc.c b/drivers/usb/gadget/udc/s3c-hsudc.c index dfbf557..f658f69 100644 --- a/drivers/usb/gadget/udc/s3c-hsudc.c +++ b/drivers/usb/gadget/udc/s3c-hsudc.c @@ -1267,10 +1267,8 @@ static int s3c_hsudc_probe(struct platform_device *pdev) hsudc = devm_kzalloc(&pdev->dev, sizeof(struct s3c_hsudc) + sizeof(struct s3c_hsudc_ep) * pd->epnum, GFP_KERNEL); - if (!hsudc) { - dev_err(dev, "cannot allocate memory\n"); + if (!hsudc) return -ENOMEM; - } platform_set_drvdata(pdev, dev); hsudc->dev = dev;