From patchwork Tue Jun 7 17:50:10 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Griffin X-Patchwork-Id: 69574 Delivered-To: patches@linaro.org Received: by 10.140.106.246 with SMTP id e109csp2100562qgf; Tue, 7 Jun 2016 10:50:41 -0700 (PDT) X-Received: by 10.28.102.196 with SMTP id a187mr779470wmc.99.1465321816612; Tue, 07 Jun 2016 10:50:16 -0700 (PDT) Return-Path: Received: from mail-wm0-x235.google.com (mail-wm0-x235.google.com. [2a00:1450:400c:c09::235]) by mx.google.com with ESMTPS id v184si22154966wmv.34.2016.06.07.10.50.16 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 07 Jun 2016 10:50:16 -0700 (PDT) Received-SPF: pass (google.com: domain of peter.griffin@linaro.org designates 2a00:1450:400c:c09::235 as permitted sender) client-ip=2a00:1450:400c:c09::235; 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::235 as permitted sender) smtp.mailfrom=peter.griffin@linaro.org; dmarc=pass (p=NONE dis=NONE) header.from=linaro.org Received: by mail-wm0-x235.google.com with SMTP id k184so11885877wme.1 for ; Tue, 07 Jun 2016 10:50:16 -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:in-reply-to:references; bh=LgR1fUzKF/0f0mD1QEib58OFgUqT01VGey9I0P+Nctg=; b=YbiMKwmEXoxx/48skGibyBTZQbSuI3TNOPvxbPz8xXhJThT7/mregYe9E9TZuqiJ0u 5xMiCrG/HTSYeudIglr/e6TJ80zhXphY2ugvQM/IQxLVA+/6pQFiLgykJ2MUIMC9CCAh gPJp2GiBFp3c6szLJDXGnkVJInfnasEn25q4M= 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:in-reply-to :references; bh=LgR1fUzKF/0f0mD1QEib58OFgUqT01VGey9I0P+Nctg=; b=ThWWAfi9iiZMTwYdVLZ+CphmRjrRAQmWX+PSCtWkBqBZeF9qHXGVBDO7E4L3nk+qkE mJadze/mED0bA5QzCvGWCnlfg2IvMkw+rzztynHyjY+ZcoC/3+VPFwiX9X/oT+GCrGOi 6dK33HMhS808xR7RluEQHsUqCAn7CG6nc6ujni1gUALOyTH3QyETzkIH6v9CRCjrNvzO tuZy4cVg/E9CgUWKzGOXVC5OzmVdKFoND4RZMU4Vb888eq3Zc3JsNFQlCpWmv4OWPQWc ytydqjHmlkr50+jCOzNypJ6vIZBR/hunIB+521YlONbPq+CCgYm9ENKoMt3vNK1UeUqW qneQ== X-Gm-Message-State: ALyK8tI+ShHBkNvsSyVL6FAPD1piwmE6+t8Jyt+qV6igdp2AJjU/WpZQ71L4vVoABjqp1RRs6jg= X-Received: by 10.28.7.71 with SMTP id 68mr916943wmh.6.1465321816278; Tue, 07 Jun 2016 10:50:16 -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.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 07 Jun 2016 10:50:15 -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 2/2] phy: phy-qcom-ufs-qmp-20nm: Remove site specific OOM error message Date: Tue, 7 Jun 2016 18:50:10 +0100 Message-Id: <1465321810-22470-2-git-send-email-peter.griffin@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1465321810-22470-1-git-send-email-peter.griffin@linaro.org> References: <1465321810-22470-1-git-send-email-peter.griffin@linaro.org> 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-20nm.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) -- 1.9.1 diff --git a/drivers/phy/phy-qcom-ufs-qmp-20nm.c b/drivers/phy/phy-qcom-ufs-qmp-20nm.c index b16ea77..97a2414 100644 --- a/drivers/phy/phy-qcom-ufs-qmp-20nm.c +++ b/drivers/phy/phy-qcom-ufs-qmp-20nm.c @@ -195,11 +195,9 @@ static int ufs_qcom_phy_qmp_20nm_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_20nm_phy_ops, &phy_20nm_ops);