]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
thermal: rcar: remove unnecessary OOM messages
authorJingoo Han <jg1.han@samsung.com>
Wed, 7 May 2014 06:03:25 +0000 (15:03 +0900)
committerZhang Rui <rui.zhang@intel.com>
Thu, 15 May 2014 09:15:26 +0000 (17:15 +0800)
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>
drivers/thermal/rcar_thermal.c

index a8ed0e0265ae6575c5c67c2011a5e1b28b259fa9..8803e693fe6868a620b76abda347e0e27645d6d3 100644 (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;
                }