thermal: rcar: 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: Simon Horman <[email protected]>
Signed-off-by: Zhang Rui <[email protected]>
This commit is contained in:
Jingoo Han 2014-05-07 15:03:25 +09:00 • committed by Zhang Rui
commit b0a60d88d6

View file

@ -374,10 +374,8 @@ static int rcar_thermal_probe(struct platform_device *pdev)
int idle = IDLE_INTERVAL;
common = devm_kzalloc(dev, sizeof(*common), GFP_KERNEL);
if (!common) {
dev_err(dev, "Could not allocate common\n");
if (!common)
return -ENOMEM;
}
INIT_LIST_HEAD(&common->head);
spin_lock_init(&common->lock);
@ -423,7 +421,6 @@ static int rcar_thermal_probe(struct platform_device *pdev)
priv = devm_kzalloc(dev, sizeof(*priv), GFP_KERNEL);
if (!priv) {
dev_err(dev, "Could not allocate priv\n");
ret = -ENOMEM;
goto error_unregister;
}