From patchwork Fri Feb 2 15:39:24 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SF Markus Elfring X-Patchwork-Id: 10197043 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 5B5CC6037D for ; Fri, 2 Feb 2018 15:39:45 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 405D328E9C for ; Fri, 2 Feb 2018 15:39:45 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 338DA28EB4; Fri, 2 Feb 2018 15:39:45 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id B84CC28E9C for ; Fri, 2 Feb 2018 15:39:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:Date: Message-ID:References:To:From:Subject:Reply-To:Content-ID:Content-Description :Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=pzBTUCT+iys6Y8VABZIXFeD6+PGpO3NaBByhGLJrHqg=; b=QSwQ4BlbHF+Ulz msOwQQiPZPA/WxwTqK3iQ4vPReUKREpACo7DGpnB/1kT+BamJ81TqR8usgGRVyykWRmbl1SsAJ+Ou zWjBJBV+tVl03ql2zymeV7/CCzVuh7nbpgN2Mi1z+OIoZ0fJhI/ZhqB2fQRWmw3INJcCKU/aec4Vm FCreA6ynE0LMe8oQM2jkbe91ta4KiV+CHQ5h48PMqYsu6jT5u39F254x3InI2u8odNgIHXc4B+vik lkt8CnVqTn7b4tel8thOSa3T1eq0718sWF6tWh6Xe77J+l5SNxPvyzGZ4ec++eTnppS5kOyxfYOw2 HqC2yuRKAkrLttNFc35g==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1ehdRG-00037j-2u; Fri, 02 Feb 2018 15:39:42 +0000 Received: from mout.web.de ([212.227.15.14]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1ehdRC-00037O-MR for linux-arm-kernel@lists.infradead.org; Fri, 02 Feb 2018 15:39:40 +0000 Received: from [192.168.1.2] ([92.228.169.238]) by smtp.web.de (mrweb004 [213.165.67.108]) with ESMTPSA (Nemesis) id 0Lfmd0-1f6Iw23Dhq-00pMGH; Fri, 02 Feb 2018 16:39:24 +0100 Subject: [PATCH 1/2] i2c-nomadik: Delete an error message for a failed memory allocation in nmk_i2c_probe() From: SF Markus Elfring To: linux-i2c@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Linus Walleij , Wolfram Sang References: <97f41346-6abb-1c14-f536-ad12bbcb4c60@users.sourceforge.net> Message-ID: <9448237a-67cb-0e7c-0837-ad1b89fc41a1@users.sourceforge.net> Date: Fri, 2 Feb 2018 16:39:24 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <97f41346-6abb-1c14-f536-ad12bbcb4c60@users.sourceforge.net> Content-Language: en-US X-Provags-ID: V03:K0:otdY9/ix+RfulwXPQK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0f9WnFzm uJUfyL+fzBJbwaDAwKmBRyoHqUnvNhn+2s081ZbRSa+dBnlzVA= X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: kernel-janitors@vger.kernel.org, LKML Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: Markus Elfring Date: Fri, 2 Feb 2018 16:25:14 +0100 Omit an extra message for a memory allocation failure in this function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/i2c/busses/i2c-nomadik.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/i2c/busses/i2c-nomadik.c b/drivers/i2c/busses/i2c-nomadik.c index 49c7c0c91486..a783ad25fe19 100644 --- a/drivers/i2c/busses/i2c-nomadik.c +++ b/drivers/i2c/busses/i2c-nomadik.c @@ -975,7 +975,6 @@ static int nmk_i2c_probe(struct amba_device *adev, const struct amba_id *id) dev = devm_kzalloc(&adev->dev, sizeof(struct nmk_i2c_dev), GFP_KERNEL); if (!dev) { - dev_err(&adev->dev, "cannot allocate memory\n"); ret = -ENOMEM; goto err_no_mem; }