pwm: tegra: Remove unnecessary OOM messages
[cascardo/linux.git] / drivers / pwm / pwm-tegra.c
index 74298c5..61d86b9 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;