From patchwork Mon Dec 7 11:50:14 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 57773 Delivered-To: patch@linaro.org Received: by 10.202.179.86 with SMTP id c83csp945009oif; Mon, 7 Dec 2015 03:52:43 -0800 (PST) X-Received: by 10.98.16.81 with SMTP id y78mr42276561pfi.158.1449489163845; Mon, 07 Dec 2015 03:52:43 -0800 (PST) Return-Path: Received: from bombadil.infradead.org (bombadil.infradead.org. [2001:1868:205::9]) by mx.google.com with ESMTPS id v70si5522908pfi.99.2015.12.07.03.52.43 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 07 Dec 2015 03:52:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org designates 2001:1868:205::9 as permitted sender) client-ip=2001:1868:205::9; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org designates 2001:1868:205::9 as permitted sender) smtp.mailfrom=linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org; dkim=neutral (body hash did not verify) header.i=@linaro-org.20150623.gappssmtp.com Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1a5uKA-0002Ey-9N; Mon, 07 Dec 2015 11:51:22 +0000 Received: from mail-wm0-x235.google.com ([2a00:1450:400c:c09::235]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1a5uJs-00022r-3K for linux-arm-kernel@lists.infradead.org; Mon, 07 Dec 2015 11:51:04 +0000 Received: by wmvv187 with SMTP id v187so162468094wmv.1 for ; Mon, 07 Dec 2015 03:50:42 -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=i9yPphPVG5+BXbHDg2WhiSf/Rrp5Xh2ee5dp2siatec=; b=PsVlWgverc/ER5XuWqpbY02I8ls9yl+wznvlQ3JPawFrY/4gh2fYboU0g1Iz5uqWXi WMfGBytB6yJzWqvEr+ja0bU1+bN67TVbPjzWmFuzrOSUl9BPkKfOD8CHTmtb0oG0nnwU vs0B7Ff/LiPsrKHMPJJrlF/auKowcvEUE9vjMpEpfuxtUd0XzsqnAVmeNPCS8tYUc0uD 0VL/t6sMfLVZ7zrKhrCWdoGB8HES+BXweYGoygVzYa9lEpSUMCos+u4r8TumuPMMqW2M /BO9Jw6FPhIofzL1/lhFDef7K74pALCAOtOPjToPPT+fGQaxRHZ9PckbZQEBE8grY4fe qBjw== 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=i9yPphPVG5+BXbHDg2WhiSf/Rrp5Xh2ee5dp2siatec=; b=bPdDmAm8yKxIsfLDtoMtZNifXqT8g8TUKCQkVzRLol/+Mtp2BiV2/Z1v4bl1Ob1f0D Wt8qE7zlSwmwm3m8IkZFwWyo0G1LAjg51aJ4qQ/P9gLQb4gNQUh+beAzcep0NSHZ3cl/ bJIhnX2yPYxObwdNNZmXvFbue+anMyOhO9IikNcFKeDReWJ0EWDMUHC06O2UmVbp6JoY 9W2nUKB/7fHB2XdGbG2eBpkdBxP3tf41GMxnisBKT0B72nSUu3VyRDKV/Kgc5ugw5Pu5 AJ7imMb0DkpVYqZlGX17d2s2qSsn003lYhqItjvsuWHlx7YgSvcph0g35/xUvPH5IJB+ 1tcw== X-Gm-Message-State: ALoCoQlv/wssPQCHRwZ9a1/RaZg+ymCIYF8sjdsuRVhYYzf2yveKJsfcwxby2LRE44Axsf3plqng X-Received: by 10.194.23.33 with SMTP id j1mr32352039wjf.4.1449489042369; Mon, 07 Dec 2015 03:50:42 -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.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 07 Dec 2015 03:50:41 -0800 (PST) From: Lee Jones To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 01/19] mfd: aat2870-core: Remove unnecessary 'out of memory' message Date: Mon, 7 Dec 2015 11:50:14 +0000 Message-Id: <1449489032-14374-2-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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20151207_035104_344714_283C83BF X-CRM114-Status: GOOD ( 10.94 ) X-Spam-Score: -2.6 (--) X-Spam-Report: SpamAssassin version 3.4.0 on bombadil.infradead.org summary: Content analysis details: (-2.6 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [2a00:1450:400c:c09:0:0:0:235 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org WARNING: Possible unnecessary 'out of memory' message + if (!aat2870) { + dev_err(&client->dev, total: 0 errors, 1 warnings, 524 lines checked Signed-off-by: Lee Jones --- drivers/mfd/aat2870-core.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) -- 1.9.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel diff --git a/drivers/mfd/aat2870-core.c b/drivers/mfd/aat2870-core.c index 29b6a2d..3ba19a4 100644 --- a/drivers/mfd/aat2870-core.c +++ b/drivers/mfd/aat2870-core.c @@ -373,11 +373,8 @@ static int aat2870_i2c_probe(struct i2c_client *client, aat2870 = devm_kzalloc(&client->dev, sizeof(struct aat2870_data), GFP_KERNEL); - if (!aat2870) { - dev_err(&client->dev, - "Failed to allocate memory for aat2870\n"); + if (!aat2870) return -ENOMEM; - } aat2870->dev = &client->dev; dev_set_drvdata(aat2870->dev, aat2870);