mtd: mpc5121_nfc: 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=61a623fe0d451c3977bc9f5a56bbef76cee8818e
Commit: 61a623fe0d451c3977bc9f5a56bbef76cee8818e
Parent: 8ecb66ba39546f17d0338c3ba5ae56e9ffb3639c
Author: Jingoo Han <jg1.han at samsung.com>
AuthorDate: Thu Dec 26 12:19:55 2013 +0900
Committer: Brian Norris <computersforpeace at gmail.com>
CommitDate: Tue Jan 7 10:07:01 2014 -0800
mtd: mpc5121_nfc: 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/mpc5121_nfc.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/mtd/nand/mpc5121_nfc.c b/drivers/mtd/nand/mpc5121_nfc.c
index d744cf7..61e2abc 100644
--- a/drivers/mtd/nand/mpc5121_nfc.c
+++ b/drivers/mtd/nand/mpc5121_nfc.c
@@ -653,10 +653,8 @@ static int mpc5121_nfc_probe(struct platform_device *op)
}
prv = devm_kzalloc(dev, sizeof(*prv), GFP_KERNEL);
- if (!prv) {
- dev_err(dev, "Memory exhausted!\n");
+ if (!prv)
return -ENOMEM;
- }
mtd = &prv->mtd;
chip = &prv->chip;
More information about the linux-mtd-cvs
mailing list