pwm: pxa: Remove unnecessary OOM messages
authorJingoo Han <jg1.han@samsung.com>
Wed, 23 Apr 2014 09:40:08 +0000 (18:40 +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-pxa.c

index cd356d8702441169773d030494a4c41c42dc7702..0b312ec420b6920b34cf3cb236a0f20c16c3f502 100644 (file)
@@ -179,10 +179,8 @@ static int pwm_probe(struct platform_device *pdev)
                return -EINVAL;
 
        pwm = devm_kzalloc(&pdev->dev, sizeof(*pwm), GFP_KERNEL);
-       if (pwm == NULL) {
-               dev_err(&pdev->dev, "failed to allocate memory\n");
+       if (pwm == NULL)
                return -ENOMEM;
-       }
 
        pwm->clk = devm_clk_get(&pdev->dev, NULL);
        if (IS_ERR(pwm->clk))
This page took 0.02718 seconds and 5 git commands to generate.