From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl0-x241.google.com ([2607:f8b0:400e:c01::241]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1ew8SE-0004Ue-Ru for linux-mtd@lists.infradead.org; Wed, 14 Mar 2018 15:36:40 +0000 Received: by mail-pl0-x241.google.com with SMTP id f23-v6so1888125plr.10 for ; Wed, 14 Mar 2018 08:36:28 -0700 (PDT) From: Arushi Singhal To: dwmw2@infradead.org Cc: computersforpeace@gmail.com, boris.brezillon@free-electrons.com, marek.vasut@gmail.com, richard@nod.at, cyrille.pitchen@wedev4u.fr, linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org, Arushi Singhal Subject: [PATCH 1/3] mtd: nand: Remove print after allocation failure Date: Wed, 14 Mar 2018 21:05:16 +0530 Message-Id: <1521041718-32492-1-git-send-email-arushisinghal19971997@gmail.com> List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , The prints after [k|v][m|z|c]alloc() functions are not needed, because in case of failure, allocator will print their internal error prints anyway. Signed-off-by: Arushi Singhal --- 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 9de6572..6e7f6e0 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.7.4