Merge tag 'media/v3.17-rc8' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab...
[firefly-linux-kernel-4.4.55.git] / drivers / pwm / pwm-tipwmss.c
index 3b119bc2c3c606f3c9ca697d9fa1dc5e66144e59..67481dc6da3f7e2de068f106a37937b30fe23eda 100644 (file)
@@ -62,10 +62,8 @@ static int pwmss_probe(struct platform_device *pdev)
        struct device_node *node = pdev->dev.of_node;
 
        info = devm_kzalloc(&pdev->dev, sizeof(*info), GFP_KERNEL);
-       if (!info) {
-               dev_err(&pdev->dev, "failed to allocate memory\n");
+       if (!info)
                return -ENOMEM;
-       }
 
        mutex_init(&info->pwmss_lock);