OSDN Git Service

soc: samsung: pm_domains: Remove message about failed memory allocation
authorMarek Szyprowski <m.szyprowski@samsung.com>
Mon, 30 Jan 2017 12:18:58 +0000 (13:18 +0100)
committerKrzysztof Kozlowski <krzk@kernel.org>
Tue, 31 Jan 2017 19:30:06 +0000 (21:30 +0200)
Memory subsystem already prints message about failed memory
allocation, there is no need to do it in the drivers.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
drivers/soc/samsung/pm_domains.c

index 05f63fe..0649024 100644 (file)
@@ -149,8 +149,6 @@ static __init int exynos4_pm_init_power_domain(void)
 
                pd = kzalloc(sizeof(*pd), GFP_KERNEL);
                if (!pd) {
-                       pr_err("%s: failed to allocate memory for domain\n",
-                                       __func__);
                        of_node_put(np);
                        return -ENOMEM;
                }