pwm: tegra: Remove unnecessary OOM messages
authorJingoo Han <jg1.han@samsung.com>
Wed, 23 Apr 2014 09:41:10 +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-tegra.c

index 74298c561c4e57f303f675a13987f6b70ecb5dc4..61d86b9498caa8bb381dbe274e1c0c6e65ee755b 100644 (file)
@@ -173,10 +173,8 @@ static int tegra_pwm_probe(struct platform_device *pdev)
        int ret;
 
        pwm = devm_kzalloc(&pdev->dev, sizeof(*pwm), GFP_KERNEL);
-       if (!pwm) {
-               dev_err(&pdev->dev, "failed to allocate memory\n");
+       if (!pwm)
                return -ENOMEM;
-       }
 
        pwm->dev = &pdev->dev;
 
This page took 0.029339 seconds and 5 git commands to generate.