From: Jingoo Han Date: Thu, 26 Dec 2013 03:02:30 +0000 (+0900) Subject: mtd: au1550nd: Remove unnecessary OOM messages X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=ce3737f047526f519985e175f07201d10b15c713;p=linux-beck.git mtd: au1550nd: Remove unnecessary OOM messages The site-specific OOM messages are unnecessary, because they duplicate the MM subsystem generic OOM message. Signed-off-by: Jingoo Han Signed-off-by: Brian Norris --- diff --git a/drivers/mtd/nand/au1550nd.c b/drivers/mtd/nand/au1550nd.c index 909b6738ece2..2880d888cfc5 100644 --- a/drivers/mtd/nand/au1550nd.c +++ b/drivers/mtd/nand/au1550nd.c @@ -418,10 +418,8 @@ static int au1550nd_probe(struct platform_device *pdev) } ctx = kzalloc(sizeof(*ctx), GFP_KERNEL); - if (!ctx) { - dev_err(&pdev->dev, "no memory for NAND context\n"); + if (!ctx) return -ENOMEM; - } r = platform_get_resource(pdev, IORESOURCE_MEM, 0); if (!r) {