Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ad745810 authored by Jingoo Han's avatar Jingoo Han Committed by Brian Norris
Browse files

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: default avatarJingoo Han <jg1.han@samsung.com>
Signed-off-by: default avatarBrian Norris <computersforpeace@gmail.com>
parent 61a623fe
Loading
Loading
Loading
Loading
+0 −2
Original line number Original line Diff line number Diff line
@@ -919,7 +919,6 @@ static int s3c24xx_nand_probe(struct platform_device *pdev)


	info = devm_kzalloc(&pdev->dev, sizeof(*info), GFP_KERNEL);
	info = devm_kzalloc(&pdev->dev, sizeof(*info), GFP_KERNEL);
	if (info == NULL) {
	if (info == NULL) {
		dev_err(&pdev->dev, "no memory for flash info\n");
		err = -ENOMEM;
		err = -ENOMEM;
		goto exit_error;
		goto exit_error;
	}
	}
@@ -974,7 +973,6 @@ static int s3c24xx_nand_probe(struct platform_device *pdev)
	size = nr_sets * sizeof(*info->mtds);
	size = nr_sets * sizeof(*info->mtds);
	info->mtds = devm_kzalloc(&pdev->dev, size, GFP_KERNEL);
	info->mtds = devm_kzalloc(&pdev->dev, size, GFP_KERNEL);
	if (info->mtds == NULL) {
	if (info->mtds == NULL) {
		dev_err(&pdev->dev, "failed to allocate mtd storage\n");
		err = -ENOMEM;
		err = -ENOMEM;
		goto exit_error;
		goto exit_error;
	}
	}