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: 7782701 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 032819F39B for ; Mon, 7 Dec 2015 11:53:10 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 1010320412 for ; Mon, 7 Dec 2015 11:53:09 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 3E5E620426 for ; Mon, 7 Dec 2015 11:53:08 +0000 (UTC) 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-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+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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(-) 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);