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

Commit b0a60d88 authored by Jingoo Han's avatar Jingoo Han Committed by Zhang Rui
Browse files

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: default avatarJingoo Han <jg1.han@samsung.com>
Acked-by: default avatarSimon Horman <horms+renesas@verge.net.au>
Signed-off-by: default avatarZhang Rui <rui.zhang@intel.com>
parent 9a17f56c
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -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;
		}