From patchwork Tue Jun 7 17:50:09 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Griffin X-Patchwork-Id: 69573 Delivered-To: patches@linaro.org Received: by 10.140.106.246 with SMTP id e109csp2100554qgf; Tue, 7 Jun 2016 10:50:40 -0700 (PDT) X-Received: by 10.28.26.138 with SMTP id a132mr4030201wma.82.1465321815416; Tue, 07 Jun 2016 10:50:15 -0700 (PDT) Return-Path: Received: from mail-wm0-x22d.google.com (mail-wm0-x22d.google.com. [2a00:1450:400c:c09::22d]) by mx.google.com with ESMTPS id v125si9825299wme.70.2016.06.07.10.50.15 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 07 Jun 2016 10:50:15 -0700 (PDT) Received-SPF: pass (google.com: domain of peter.griffin@linaro.org designates 2a00:1450:400c:c09::22d as permitted sender) client-ip=2a00:1450:400c:c09::22d; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org; spf=pass (google.com: domain of peter.griffin@linaro.org designates 2a00:1450:400c:c09::22d as permitted sender) smtp.mailfrom=peter.griffin@linaro.org; dmarc=pass (p=NONE dis=NONE) header.from=linaro.org Received: by mail-wm0-x22d.google.com with SMTP id k204so79647155wmk.0 for ; Tue, 07 Jun 2016 10:50:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=9WC+pVlzobHAPmjPJaYyGb37OmpNNVCqIo+eLONIXFc=; b=CsV1glj1Dyb26W9Q7uKtsnOazm+gFEVPpnNbM94yzA8i88e7D5mzNKJPAqX1nnc0G+ 63sO0NSCIjaGbjVzzlkSgv4rWTGdnNrcQOWXB87NR+4RXFoDIvHmNTgbRYLucjIOimL7 kUv0bmSws/7Ji2T07Og77sltV/2iMymWsTAh0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=9WC+pVlzobHAPmjPJaYyGb37OmpNNVCqIo+eLONIXFc=; b=R3xJuV0YkEkVIqDFYUjpiRCct75oqMoyeqxGQ964ufMVPrgloQ57ENdezAknE6XQc3 aJpNsXQ6lTD88fjKZrG30KTatITZnWvcSXt5eFnr9WQXk5MQEWqaqHIk7gLfL+IpQ5fW xwby8PrbbYmnwUgHNiY+phrS67uu0Uj2AKZfFdAFZoTMaZx6O9yEV/09R1OWNAgWOGLr kSl/kJ5wh8Rf++Yon0tfvDRgW8neYEfYGSdbhZPZWCA3vDMKQADtHm/KQwg8LvYJk1U4 t9TyOcJT5qIXIGP0diWU872LY5eTzlRHKf0g3cczoLsXmOciROL82GYI58qMe2qeR3iO CBNg== X-Gm-Message-State: ALyK8tKAhLMQjX12WPU2bz9QHGtfYIy1Bf1+fWAe0WNdtwUprE728/8aBOxTKYWxDXgfZV+rL0E= X-Received: by 10.28.146.73 with SMTP id u70mr930524wmd.42.1465321815071; Tue, 07 Jun 2016 10:50:15 -0700 (PDT) Return-Path: Received: from localhost.localdomain (cpc84731-aztw28-2-0-cust112.18-1.cable.virginm.net. [82.37.67.113]) by smtp.gmail.com with ESMTPSA id g8sm20592052wme.23.2016.06.07.10.50.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 07 Jun 2016 10:50:13 -0700 (PDT) From: Peter Griffin To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, kishon@ti.com Cc: peter.griffin@linaro.org, patches@linaro.org, lee.jones@linaro.org Subject: [PATCH 1/2] phy: phy-qcom-ufs-qmp-14nm: Remove site specific OOM error message Date: Tue, 7 Jun 2016 18:50:09 +0100 Message-Id: <1465321810-22470-1-git-send-email-peter.griffin@linaro.org> X-Mailer: git-send-email 1.9.1 kzalloc will issue its own error message including a dump_stack() so remote the site specific message. Signed-off-by: Peter Griffin --- drivers/phy/phy-qcom-ufs-qmp-14nm.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) -- 1.9.1 diff --git a/drivers/phy/phy-qcom-ufs-qmp-14nm.c b/drivers/phy/phy-qcom-ufs-qmp-14nm.c index 56631e7..958e9cc 100644 --- a/drivers/phy/phy-qcom-ufs-qmp-14nm.c +++ b/drivers/phy/phy-qcom-ufs-qmp-14nm.c @@ -139,11 +139,9 @@ static int ufs_qcom_phy_qmp_14nm_probe(struct platform_device *pdev) int err = 0; phy = devm_kzalloc(dev, sizeof(*phy), GFP_KERNEL); - if (!phy) { - dev_err(dev, "%s: failed to allocate phy\n", __func__); + if (!phy) err = -ENOMEM; goto out; - } generic_phy = ufs_qcom_phy_generic_probe(pdev, &phy->common_cfg, &ufs_qcom_phy_qmp_14nm_phy_ops, &phy_14nm_ops);