pwm: tiehrpwm: Remove unnecessary OOM messages
authorJingoo Han <jg1.han@samsung.com>
Wed, 23 Apr 2014 09:41:48 +0000 (18:41 +0900)
committerThierry Reding <thierry.reding@gmail.com>
Mon, 28 Apr 2014 11:37:48 +0000 (13:37 +0200)
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>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
drivers/pwm/pwm-tiehrpwm.c

index aee4471424d14a98da494f877909ae5e9f804990..3a31c08cc6c854f0420c292c36e5a36096fc6f0f 100644 (file)
@@ -440,10 +440,8 @@ static int ehrpwm_pwm_probe(struct platform_device *pdev)
        u16 status;
 
        pc = devm_kzalloc(&pdev->dev, sizeof(*pc), GFP_KERNEL);
-       if (!pc) {
-               dev_err(&pdev->dev, "failed to allocate memory\n");
+       if (!pc)
                return -ENOMEM;
-       }
 
        clk = devm_clk_get(&pdev->dev, "fck");
        if (IS_ERR(clk)) {