thermal: spear: 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 <[email protected]>
Acked-by: Viresh Kumar <[email protected]>
Signed-off-by: Zhang Rui <[email protected]>
This commit is contained in:
Jingoo Han 2014-05-07 15:05:32 +09:00 • committed by Zhang Rui
commit fa018d3eed

View file

@ -113,10 +113,8 @@ static int spear_thermal_probe(struct platform_device *pdev)
}
stdev = devm_kzalloc(&pdev->dev, sizeof(*stdev), GFP_KERNEL);
if (!stdev) {
dev_err(&pdev->dev, "kzalloc fail\n");
if (!stdev)
return -ENOMEM;
}
/* Enable thermal sensor */
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);