gpio: palmas: remove unnecessary OOM messages
authorJingoo Han <jg1.han@samsung.com>
Tue, 29 Apr 2014 08:39:07 +0000 (17:39 +0900)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 9 May 2014 08:55:03 +0000 (10:55 +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-palmas.c

index da9d33252e5603fcc8712db61bb684198fda4673..a5ec6022e7891800300e75aa44176834c42a97b6 100644 (file)
@@ -173,10 +173,8 @@ static int palmas_gpio_probe(struct platform_device *pdev)
 
        palmas_gpio = devm_kzalloc(&pdev->dev,
                                sizeof(*palmas_gpio), GFP_KERNEL);
-       if (!palmas_gpio) {
-               dev_err(&pdev->dev, "Could not allocate palmas_gpio\n");
+       if (!palmas_gpio)
                return -ENOMEM;
-       }
 
        palmas_gpio->palmas = palmas;
        palmas_gpio->gpio_chip.owner = THIS_MODULE;