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

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

mtd: devices: elm: 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>
Acked-by: default avatarPekon Gupta <pekon@ti.com>
Signed-off-by: default avatarBrian Norris <computersforpeace@gmail.com>
parent 0a21552a
Loading
Loading
Loading
Loading
+1 −3
Original line number Original line Diff line number Diff line
@@ -354,10 +354,8 @@ static int elm_probe(struct platform_device *pdev)
	struct elm_info *info;
	struct elm_info *info;


	info = devm_kzalloc(&pdev->dev, sizeof(*info), GFP_KERNEL);
	info = devm_kzalloc(&pdev->dev, sizeof(*info), GFP_KERNEL);
	if (!info) {
	if (!info)
		dev_err(&pdev->dev, "failed to allocate memory\n");
		return -ENOMEM;
		return -ENOMEM;
	}


	info->dev = &pdev->dev;
	info->dev = &pdev->dev;