Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752856AbeAEU3h (ORCPT + 1 other); Fri, 5 Jan 2018 15:29:37 -0500 Received: from mout.web.de ([212.227.17.11]:52628 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752793AbeAEU3a (ORCPT ); Fri, 5 Jan 2018 15:29:30 -0500 Subject: [PATCH 1/3] mtd/nand/ams-delta: Delete an error message for a failed memory allocation in ams_delta_init() From: SF Markus Elfring To: linux-mtd@lists.infradead.org, Boris Brezillon , Brian Norris , Cyrille Pitchen , David Woodhouse , Marek Vasut , Richard Weinberger Cc: LKML , kernel-janitors@vger.kernel.org References: <8f678424-3ce1-3a4c-1b0d-f3ac9a226f00@users.sourceforge.net> Message-ID: <0ab36d19-fb5b-ab7f-5821-7c0574f9589f@users.sourceforge.net> Date: Fri, 5 Jan 2018 21:28:58 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: <8f678424-3ce1-3a4c-1b0d-f3ac9a226f00@users.sourceforge.net> Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:Aalw3wJvpo5Nmydz2Bo/Nn8DhrUschTP48vFOYH2tYFrRbabY8L g24iAktfxWdQapxgDxA1Lh1+xnYcVexUIV4nfrSvypZppOBio2ChXOu82N1HcEpItJPTz4v JVC3nqQ6r7cFq5B6X2E9kxO+eqdR9UWPMh5qF9fYdrz+P2vZCdssxLBw059hqsKxVNfJxPf IF/Ca3SW9GfqyYuf8RtYg== X-UI-Out-Filterresults: notjunk:1;V01:K0:8z6xvREBAnI=:zDqRqSvIXFmfbIrmXoL+Fc tBZAfDNXQ6cQ7WCvI/zjI8glaGUgOBoerst0xFLsTDE3dzqX+X1p0eFozb12TfC9jF0nz41mn BVjP15nAtKVMWx6jOE1nrSp+KtHRSeM/0Wu/JFhp+ezCyqFVtAc4s2uBG4FWKOH6IXu6Rp+X8 CrzWgsK9M8sKeQclJ/l6w0ueATmkNLbGkIcj9POKKGdVkc0rgBww1gWZRatVrR0MAHSzFkw8N XaB+TyDAH6Bi+GO2Z+e3aJQHBqmfSGFprYD+iPFJmjjnCu+g0sEGF6kp1o+hecWd80qCmt52j P4HTKDi2J5fAR9Mdtd5sDzfEWO23U1UYCL+Zf9o/DtMnZS9960En/ffcvDS/TFK470azpzi3U NYD3wSUqrm+sb1X/LcTlNG+Ih/REXSDY1ynDTg7Hqco30Z+LWyDc++BsvdYMYs4tHKHlsITjU YQ/ooH0+/5bhT2w/Kq5I2tvRLc9VmBkNIuTIat5TNuN0wfTAwgSRYU/0epYGnKRKyzvauplH0 xBHDMFcopwjIAMSJwXX1p1Y6dSrZ19Jkbpmh3ACzof0geP8TLNM+SgNYSSNkvae9iE7sY+5lU tx2d6PfSYg3xJH1JRyL3vqxqUksOPNz2Mr/Bs8Mfl5A8XNBAZ+vmzWtauklCBJLNWg8unvdJd p235Ff/njDKwiNEQwuaTRPsi/sssTE4kU8jn1ajopZLGjRAZxwFGaVEwwJaiY71FiiR5z45/b uE3xGj/vOQaZfRUD/z3zlKEkfRx7o3RNlPbfI3jwW/RqvsAn7+/DD8TRGt0GcfVTO0qAFG2f0 fxQjLIWrAUExY7OLS4frZIMvfImGMfRRUG5mqnFLLOwPEx23sQ= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: From: Markus Elfring Date: Fri, 5 Jan 2018 21:01:18 +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/mtd/nand/ams-delta.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/mtd/nand/ams-delta.c b/drivers/mtd/nand/ams-delta.c index d60ada45c549..effaecff0f2e 100644 --- a/drivers/mtd/nand/ams-delta.c +++ b/drivers/mtd/nand/ams-delta.c @@ -185,7 +185,6 @@ static int ams_delta_init(struct platform_device *pdev) /* Allocate memory for MTD device structure and private data */ this = kzalloc(sizeof(struct nand_chip), GFP_KERNEL); if (!this) { - printk (KERN_WARNING "Unable to allocate E3 NAND MTD device structure.\n"); err = -ENOMEM; goto out; } -- 2.15.1