aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2013-12-25 22:21:39 -0500
committerBrian Norris <computersforpeace@gmail.com>2014-01-07 13:07:01 -0500
commitad745810070e013f8f66744dc31ab7c202881dec (patch)
tree1970b8dcc4fd2059224a365f3062b1117916ebb4
parent61a623fe0d451c3977bc9f5a56bbef76cee8818e (diff)
mtd: s3c2410: 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@samsung.com> Signed-off-by: Brian Norris <computersforpeace@gmail.com>
-rw-r--r--drivers/mtd/nand/s3c2410.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/mtd/nand/s3c2410.c b/drivers/mtd/nand/s3c2410.c
index d65cbe903d40..47fbd9a2cacf 100644
--- a/drivers/mtd/nand/s3c2410.c
+++ b/drivers/mtd/nand/s3c2410.c
@@ -919,7 +919,6 @@ static int s3c24xx_nand_probe(struct platform_device *pdev)
919 919
920 info = devm_kzalloc(&pdev->dev, sizeof(*info), GFP_KERNEL); 920 info = devm_kzalloc(&pdev->dev, sizeof(*info), GFP_KERNEL);
921 if (info == NULL) { 921 if (info == NULL) {
922 dev_err(&pdev->dev, "no memory for flash info\n");
923 err = -ENOMEM; 922 err = -ENOMEM;
924 goto exit_error; 923 goto exit_error;
925 } 924 }
@@ -974,7 +973,6 @@ static int s3c24xx_nand_probe(struct platform_device *pdev)
974 size = nr_sets * sizeof(*info->mtds); 973 size = nr_sets * sizeof(*info->mtds);
975 info->mtds = devm_kzalloc(&pdev->dev, size, GFP_KERNEL); 974 info->mtds = devm_kzalloc(&pdev->dev, size, GFP_KERNEL);
976 if (info->mtds == NULL) { 975 if (info->mtds == NULL) {
977 dev_err(&pdev->dev, "failed to allocate mtd storage\n");
978 err = -ENOMEM; 976 err = -ENOMEM;
979 goto exit_error; 977 goto exit_error;
980 } 978 }