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

index 6270f755d0ed3d3107b846c1f6dbbcded0ba1d7a..4c173ad4c23c195966ac011efb9d7f75cd05e865 100644 (file)
@@ -178,10 +178,8 @@ static int zevio_gpio_probe(struct platform_device *pdev)
        int status, i;
 
        controller = devm_kzalloc(&pdev->dev, sizeof(*controller), GFP_KERNEL);
-       if (!controller) {
-               dev_err(&pdev->dev, "not enough free memory\n");
+       if (!controller)
                return -ENOMEM;
-       }
 
        /* Copy our reference */
        controller->chip.gc = zevio_gpio_chip;