pwm: pwm-tipwmss: remove unnecessary OOM messages
authorJingoo Han <jg1.han@samsung.com>
Wed, 18 Jun 2014 05:50:08 +0000 (14:50 +0900)
committerThierry Reding <thierry.reding@gmail.com>
Thu, 7 Aug 2014 11:14:33 +0000 (13:14 +0200)
The site-specific OOM messages are unnecessary, because they
duplicate the MM subsystem generic OOM message. The following
checkpatch warning is also removed.

  WARNING: Possible unnecessary 'out of memory' message

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
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);
 
This page took 0.02541 seconds and 5 git commands to generate.