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

index ccd45704e5fdc1f5c4a089e9dd6f994c8eb10a67..4661e181be0481e65f6758919db714b2ca48e360 100644 (file)
@@ -113,10 +113,8 @@ static int moxart_gpio_probe(struct platform_device *pdev)
        int ret;
 
        mgc = devm_kzalloc(dev, sizeof(*mgc), GFP_KERNEL);
-       if (!mgc) {
-               dev_err(dev, "can't allocate GPIO chip container\n");
+       if (!mgc)
                return -ENOMEM;
-       }
        mgc->gpio = moxart_template_chip;
 
        res = platform_get_resource(pdev, IORESOURCE_MEM, 0);