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

index 339f9dac591bf0e28b85644d6538b3caec782818..9f0682534e2f46376a7086bc306cf195cc6e8e6f 100644 (file)
@@ -230,10 +230,8 @@ static int davinci_gpio_probe(struct platform_device *pdev)
        chips = devm_kzalloc(dev,
                             ngpio * sizeof(struct davinci_gpio_controller),
                             GFP_KERNEL);
-       if (!chips) {
-               dev_err(dev, "Memory allocation failed\n");
+       if (!chips)
                return -ENOMEM;
-       }
 
        res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
        if (!res) {