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

index 9b423173ab50a949e152645511f8badc40421d41..562b0c4d9cc888a01af998e48c337ace1a23ce4e 100644 (file)
@@ -119,10 +119,8 @@ static int rc5t583_gpio_probe(struct platform_device *pdev)
 
        rc5t583_gpio = devm_kzalloc(&pdev->dev, sizeof(*rc5t583_gpio),
                                        GFP_KERNEL);
-       if (!rc5t583_gpio) {
-               dev_warn(&pdev->dev, "Mem allocation for rc5t583_gpio failed");
+       if (!rc5t583_gpio)
                return -ENOMEM;
-       }
 
        rc5t583_gpio->gpio_chip.label = "gpio-rc5t583",
        rc5t583_gpio->gpio_chip.owner = THIS_MODULE,