Skip to content

Commit

Permalink
thermal: rcar: remove unnecessary OOM messages
Browse files Browse the repository at this point in the history
The site-specific OOM messages are unnecessary, because they
duplicate the MM subsystem generic OOM message.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Acked-by: Simon Horman <horms+renesas@verge.net.au>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
  • Loading branch information
Jingoo Han authored and Zhang Rui committed May 15, 2014
1 parent 9a17f56 commit b0a60d8
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions drivers/thermal/rcar_thermal.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit b0a60d8

Please sign in to comment.