mtd: txx9ndfmc: 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=844a72c5af0dc1e8f45f0beb8306b9b1887fe7c1
Commit: 844a72c5af0dc1e8f45f0beb8306b9b1887fe7c1
Parent: 51b37b8a72eff5982948eb4d840a40d9b9f55bed
Author: Jingoo Han <jg1.han at samsung.com>
AuthorDate: Thu Dec 26 12:12:03 2013 +0900
Committer: Brian Norris <computersforpeace at gmail.com>
CommitDate: Fri Jan 3 11:22:30 2014 -0800
mtd: txx9ndfmc: 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/txx9ndfmc.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/drivers/mtd/nand/txx9ndfmc.c b/drivers/mtd/nand/txx9ndfmc.c
index 235714a..c1622a5 100644
--- a/drivers/mtd/nand/txx9ndfmc.c
+++ b/drivers/mtd/nand/txx9ndfmc.c
@@ -319,11 +319,8 @@ static int __init txx9ndfmc_probe(struct platform_device *dev)
continue;
txx9_priv = kzalloc(sizeof(struct txx9ndfmc_priv),
GFP_KERNEL);
- if (!txx9_priv) {
- dev_err(&dev->dev, "Unable to allocate "
- "TXx9 NDFMC MTD device structure.\n");
+ if (!txx9_priv)
continue;
- }
chip = &txx9_priv->chip;
mtd = &txx9_priv->mtd;
mtd->owner = THIS_MODULE;
More information about the linux-mtd-cvs
mailing list