mtd: nand-gpio: 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=24e9971d3d938f49ea03e0c76649a62894175b3f
Commit: 24e9971d3d938f49ea03e0c76649a62894175b3f
Parent: d9a21ae8e5f3fe2d940f54e45386b35b98cbcc35
Author: Jingoo Han <jg1.han at samsung.com>
AuthorDate: Thu Dec 26 12:17:42 2013 +0900
Committer: Brian Norris <computersforpeace at gmail.com>
CommitDate: Tue Jan 7 10:06:57 2014 -0800
mtd: nand-gpio: 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/gpio.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/mtd/nand/gpio.c b/drivers/mtd/nand/gpio.c
index e826f89..8dfdbb6 100644
--- a/drivers/mtd/nand/gpio.c
+++ b/drivers/mtd/nand/gpio.c
@@ -211,10 +211,8 @@ static int gpio_nand_probe(struct platform_device *pdev)
return -EINVAL;
gpiomtd = devm_kzalloc(&pdev->dev, sizeof(*gpiomtd), GFP_KERNEL);
- if (!gpiomtd) {
- dev_err(&pdev->dev, "failed to create NAND MTD\n");
+ if (!gpiomtd)
return -ENOMEM;
- }
chip = &gpiomtd->nand_chip;
More information about the linux-mtd-cvs
mailing list