]> git.karo-electronics.de Git - linux-beck.git/commitdiff
gpio: adp5520: remove unnecessary OOM messages
authorJingoo Han <jg1.han@samsung.com>
Tue, 29 Apr 2014 08:31:31 +0000 (17:31 +0900)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 9 May 2014 08:54:33 +0000 (10:54 +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>
Reviewed-by: Javier Martinez Canillas <javier@dowhile0.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-adp5520.c

index 613265944e2e3966f57aa21447cd2093422d9ef5..f1ade8fa3218c346ddbe1867ba2242b146a94ec8 100644 (file)
@@ -106,10 +106,8 @@ static int adp5520_gpio_probe(struct platform_device *pdev)
        }
 
        dev = devm_kzalloc(&pdev->dev, sizeof(*dev), GFP_KERNEL);
-       if (dev == NULL) {
-               dev_err(&pdev->dev, "failed to alloc memory\n");
+       if (dev == NULL)
                return -ENOMEM;
-       }
 
        dev->master = pdev->dev.parent;