mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
thermal: exynos: 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]> Signed-off-by: Zhang Rui <[email protected]>
This commit is contained in:
parent
b0a60d88d6
commit
2a9675b39a
1 changed files with 1 additions and 4 deletions
|
|
@ -611,10 +611,8 @@ static int exynos_tmu_probe(struct platform_device *pdev)
|
|||
|
||||
data = devm_kzalloc(&pdev->dev, sizeof(struct exynos_tmu_data),
|
||||
GFP_KERNEL);
|
||||
if (!data) {
|
||||
dev_err(&pdev->dev, "Failed to allocate driver structure\n");
|
||||
if (!data)
|
||||
return -ENOMEM;
|
||||
}
|
||||
|
||||
platform_set_drvdata(pdev, data);
|
||||
mutex_init(&data->lock);
|
||||
|
|
@ -660,7 +658,6 @@ static int exynos_tmu_probe(struct platform_device *pdev)
|
|||
sensor_conf = devm_kzalloc(&pdev->dev,
|
||||
sizeof(struct thermal_sensor_conf), GFP_KERNEL);
|
||||
if (!sensor_conf) {
|
||||
dev_err(&pdev->dev, "Failed to allocate registration struct\n");
|
||||
ret = -ENOMEM;
|
||||
goto err_clk;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue