mtd: au1550nd: Remove unnecessary OOM messages
Linux-MTD Mailing List
linux-mtd at lists.infradead.org
Tue Jan 28 00:59:05 EST 2014
Gitweb: http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=ce3737f047526f519985e175f07201d10b15c713
Commit: ce3737f047526f519985e175f07201d10b15c713
Parent: fc59a51e48010630507d8a0da6a1cf9ab23528bf
Author: Jingoo Han <jg1.han at samsung.com>
AuthorDate: Thu Dec 26 12:02:30 2013 +0900
Committer: Brian Norris <computersforpeace at gmail.com>
CommitDate: Fri Jan 3 11:22:29 2014 -0800
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 <jg1.han at samsung.com>
Signed-off-by: Brian Norris <computersforpeace at gmail.com>
---
drivers/mtd/nand/au1550nd.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/mtd/nand/au1550nd.c b/drivers/mtd/nand/au1550nd.c
index 909b673..2880d88 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) {
More information about the linux-mtd-cvs
mailing list