Message ID | 1413566234-13537-37-git-send-email-balbi@ti.com |
---|---|
State | Accepted |
Commit | 9aabd03272c8dc0b91341da865ae742fe0ecb2c3 |
Headers | show
Return-Path: <patchwork-forward+bncBC5M7T4HYEKRBHM7QWRAKGQEOBLFCNQ@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ee0-f70.google.com (mail-ee0-f70.google.com [74.125.83.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 78216202DB for <linaro@patches.linaro.org>; Fri, 17 Oct 2014 17:19:26 +0000 (UTC) Received: by mail-ee0-f70.google.com with SMTP id c13sf799828eek.5 for <linaro@patches.linaro.org>; Fri, 17 Oct 2014 10:19:25 -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=yhpAbonbrIEZN9BPDrHN2qQ54DVp5caH51CinAJFV50=; b=bEYXfrAr2i0tOoTl+Ju/O9wqztqR2qcDO/iunimvrlNfEFo5+j2HjEmCelDqn9uqMP VHhyuXTOeJzx3uGSZGBdU4GeveSZYH8hJIxJKWu91MrjXOho5dmDMkf0nNtFjSqgPqnD gQisRIEBEJazZSizmeUPGeruzhtvp6dX+ss8wQ5ciYc244ozRgea9SuIaetnmzkrPdZp DY3BVcP+rLjEGtbGaN/r7Ml29rC6BKdPO3ncUNRkUHmRV+UDLEKhV3ez+igyerAI0u/O EVYZxX3E2/G+9T+o1AtrLs7ehh0yZxC9atG20tU3QTYLZB4E3iHLg8LmipiMdBTfMTJC fdvA== X-Gm-Message-State: ALoCoQmbKeB+S9DRtn9OtaB4Y1cVrtAXivDz6uj7BQB2Y7ueAuRI2BjzglFpVpONNuVvljuMTAES X-Received: by 10.180.98.165 with SMTP id ej5mr851814wib.1.1413566365700; Fri, 17 Oct 2014 10:19:25 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.44.229 with SMTP id h5ls293707lam.4.gmail; Fri, 17 Oct 2014 10:19:25 -0700 (PDT) X-Received: by 10.112.148.161 with SMTP id tt1mr10344239lbb.67.1413566365546; Fri, 17 Oct 2014 10:19:25 -0700 (PDT) Received: from mail-la0-f49.google.com (mail-la0-f49.google.com. [209.85.215.49]) by mx.google.com with ESMTPS id vr4si2959046lbb.110.2014.10.17.10.19.25 for <patchwork-forward@linaro.org> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 17 Oct 2014 10:19:25 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.49 as permitted sender) client-ip=209.85.215.49; Received: by mail-la0-f49.google.com with SMTP id q1so1049420lam.22 for <patchwork-forward@linaro.org>; Fri, 17 Oct 2014 10:19:25 -0700 (PDT) X-Received: by 10.152.120.200 with SMTP id le8mr10023959lab.67.1413566365462; Fri, 17 Oct 2014 10:19:25 -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 c5csp268298lbz; Fri, 17 Oct 2014 10:19:24 -0700 (PDT) X-Received: by 10.66.222.100 with SMTP id ql4mr9748827pac.123.1413566354586; Fri, 17 Oct 2014 10:19:14 -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.13 for <multiple recipients>; Fri, 17 Oct 2014 10:19:14 -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 S1753691AbaJQRSV (ORCPT <rfc822;amit.pundir@linaro.org> + 3 others); Fri, 17 Oct 2014 13:18:21 -0400 Received: from comal.ext.ti.com ([198.47.26.152]:55819 "EHLO comal.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753659AbaJQRSM (ORCPT <rfc822;linux-usb@vger.kernel.org>); Fri, 17 Oct 2014 13:18:12 -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 s9HHI3jv011736; Fri, 17 Oct 2014 12:18:03 -0500 Received: from DFLE72.ent.ti.com (dfle72.ent.ti.com [128.247.5.109]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id s9HHI3De029653; Fri, 17 Oct 2014 12:18:03 -0500 Received: from dflp33.itg.ti.com (10.64.6.16) by DFLE72.ent.ti.com (128.247.5.109) with Microsoft SMTP Server id 14.3.174.1; Fri, 17 Oct 2014 12:18:03 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp33.itg.ti.com (8.14.3/8.13.8) with ESMTP id s9HHI2Pn003253; Fri, 17 Oct 2014 12:18:03 -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 36/67] usb: phy: phy-am335x-control: delete unnecessary 'out of memory' messages Date: Fri, 17 Oct 2014 12:16:43 -0500 Message-ID: <1413566234-13537-37-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.215.49 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/phy/phy-am335x-control.c b/drivers/usb/phy/phy-am335x-control.c index 35b6083..2e923c5 100644 --- a/drivers/usb/phy/phy-am335x-control.c +++ b/drivers/usb/phy/phy-am335x-control.c @@ -147,10 +147,8 @@ static int am335x_control_usb_probe(struct platform_device *pdev) phy_ctrl = of_id->data; ctrl_usb = devm_kzalloc(&pdev->dev, sizeof(*ctrl_usb), GFP_KERNEL); - if (!ctrl_usb) { - dev_err(&pdev->dev, "unable to alloc memory for control usb\n"); + if (!ctrl_usb) return -ENOMEM; - } ctrl_usb->dev = &pdev->dev;