]> git.karo-electronics.de Git - linux-beck.git/commitdiff
pwm: ab8500: Remove unnecessary OOM messages
authorJingoo Han <jg1.han@samsung.com>
Wed, 23 Apr 2014 09:39:26 +0000 (18:39 +0900)
committerThierry Reding <thierry.reding@gmail.com>
Mon, 28 Apr 2014 11:37:47 +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-ab8500.c

index 1d07a6f9937541f46de1afc07962974498f69cdc..9d53e8ef90d00c24cb2ccffced9fbdc05f994f13 100644 (file)
@@ -101,10 +101,8 @@ static int ab8500_pwm_probe(struct platform_device *pdev)
         * device which is required for ab8500 read and write
         */
        ab8500 = devm_kzalloc(&pdev->dev, sizeof(*ab8500), GFP_KERNEL);
-       if (ab8500 == NULL) {
-               dev_err(&pdev->dev, "failed to allocate memory\n");
+       if (ab8500 == NULL)
                return -ENOMEM;
-       }
 
        ab8500->chip.dev = &pdev->dev;
        ab8500->chip.ops = &ab8500_pwm_ops;