thermal: spear: remove unnecessary OOM messages
authorJingoo Han <jg1.han@samsung.com>
Wed, 7 May 2014 06:05:32 +0000 (15:05 +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: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
drivers/thermal/spear_thermal.c

index ab79ea4701d9f88df85b693c41f96a7d80faaea8..1e2193fc3241f857d1965d80f70b6c1e06b530cf 100644 (file)
@@ -113,10 +113,8 @@ static int spear_thermal_probe(struct platform_device *pdev)
        }
 
        stdev = devm_kzalloc(&pdev->dev, sizeof(*stdev), GFP_KERNEL);
-       if (!stdev) {
-               dev_err(&pdev->dev, "kzalloc fail\n");
+       if (!stdev)
                return -ENOMEM;
-       }
 
        /* Enable thermal sensor */
        res = platform_get_resource(pdev, IORESOURCE_MEM, 0);