From patchwork Mon Dec 7 11:50:32 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 57769 Delivered-To: patch@linaro.org Received: by 10.202.179.86 with SMTP id c83csp944791oif; Mon, 7 Dec 2015 03:51:44 -0800 (PST) X-Received: by 10.66.154.129 with SMTP id vo1mr42660433pab.152.1449489103453; Mon, 07 Dec 2015 03:51:43 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p17si42097903pfi.151.2015.12.07.03.51.43; Mon, 07 Dec 2015 03:51:43 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dkim=neutral (body hash did not verify) header.i=@linaro-org.20150623.gappssmtp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932260AbbLGLvl (ORCPT + 28 others); Mon, 7 Dec 2015 06:51:41 -0500 Received: from mail-wm0-f51.google.com ([74.125.82.51]:38267 "EHLO mail-wm0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932116AbbLGLu5 (ORCPT ); Mon, 7 Dec 2015 06:50:57 -0500 Received: by wmec201 with SMTP id c201so147243995wme.1 for ; Mon, 07 Dec 2015 03:50:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro-org.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id:in-reply-to:references; bh=LFdNBMZKvplSe83PXIkkOPbqyHvtQzvazqq7jD6h8+c=; b=m+UwrEKnR5a/VzJWqtd4P6W3daEKRoiC5lHs1JLvWIMmpEr9vZ+vassEPd91cxL63j O6NjsRmMBBkQJUDYg3z02VoGm3NSmXuHGehM1kZyAyZq1MvfW59wcUSYsT9bhDSgjHu+ sqolZP7WvPzbkzWAk7joZKcyIDuEZDgNLzACDfCIRK2CvxS90N4pEh3t8W/VA1pk3YGW 9WAKaG/pIuI5hXaoDBvoXJRS17lJsoR8xV005f1dTajKZ5NaATAbFULJnRUoP86Bi65N d8W6yNwcB+IAVdJmq3iVTJcmuCzYo1P6CSge4/05LdJ6TvdmxbcyHpHYDu+j+4vWQhQJ Ky8g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=LFdNBMZKvplSe83PXIkkOPbqyHvtQzvazqq7jD6h8+c=; b=Wn6KVwKHidg+zh2MRlbh6UhtAUf1kaO89Ez9/5upjrQOiKlEwmGU+EBuRin7V/kOhH ugbww/56W/2IlBthEFBqfnhIjNp9yhE3cObZaVMW0TdbpJHbMut7iu3wmGoDBbxvy9Ls wM6u2c2PE8qJKNpIW6HgYJxO8L+ko4lICO/SEluXbUBn+jxy1iRzH5+it0n0yqGJBsTh oCexfxIz/spIB/VPpFUbYtB6LmEvB7cpua2botAemNAZ9iuIbWSQTAEBkYUlVdUqr55H VrXg7kY4UT8gGnI/m4i+U4eSzfIizJjptjHAEO1mkRjvlTBUrxGrPAi6tGKUWD24S96i uEcg== X-Gm-Message-State: ALoCoQnRUEu1X3vXoK+6dpEUpzEArxLZ+lp1Op/8RhNCXAxEJczjB6Z2+KfAJgOB4RuH2IFrnnpH X-Received: by 10.194.110.5 with SMTP id hw5mr37899623wjb.154.1449489056473; Mon, 07 Dec 2015 03:50:56 -0800 (PST) Received: from localhost.localdomain (host81-129-174-134.range81-129.btcentralplus.com. [81.129.174.134]) by smtp.gmail.com with ESMTPSA id z1sm24806533wje.35.2015.12.07.03.50.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 07 Dec 2015 03:50:56 -0800 (PST) From: Lee Jones To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 19/19] mfd: davinci_voicecodec: Remove pointless 'out of memory' error message Date: Mon, 7 Dec 2015 11:50:32 +0000 Message-Id: <1449489032-14374-20-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1449489032-14374-1-git-send-email-lee.jones@linaro.org> References: <1449489032-14374-1-git-send-email-lee.jones@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org WARNING: Possible unnecessary 'out of memory' message + if (!davinci_vc) { + dev_dbg(&pdev->dev, total: 0 errors, 1 warnings, 154 lines checked Signed-off-by: Lee Jones --- drivers/mfd/davinci_voicecodec.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ diff --git a/drivers/mfd/davinci_voicecodec.c b/drivers/mfd/davinci_voicecodec.c index 9bbc642..dff2f19 100644 --- a/drivers/mfd/davinci_voicecodec.c +++ b/drivers/mfd/davinci_voicecodec.c @@ -47,11 +47,8 @@ static int __init davinci_vc_probe(struct platform_device *pdev) davinci_vc = devm_kzalloc(&pdev->dev, sizeof(struct davinci_vc), GFP_KERNEL); - if (!davinci_vc) { - dev_dbg(&pdev->dev, - "could not allocate memory for private data\n"); + if (!davinci_vc) return -ENOMEM; - } davinci_vc->clk = devm_clk_get(&pdev->dev, NULL); if (IS_ERR(davinci_vc->clk)) {