]> git.karo-electronics.de Git - linux-beck.git/commitdiff
gpio: tegra: remove unnecessary OOM messages
authorJingoo Han <jg1.han@samsung.com>
Tue, 29 Apr 2014 08:44:14 +0000 (17:44 +0900)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 9 May 2014 08:55:23 +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-tegra.c

index 2b49f878b56c69c8f28897dbc5c99d59daa09f91..c6bdc2ed2445570c65fb41c3a678c1d6ff505f9f 100644 (file)
@@ -458,10 +458,8 @@ static int tegra_gpio_probe(struct platform_device *pdev)
        tegra_gpio_banks = devm_kzalloc(&pdev->dev,
                        tegra_gpio_bank_count * sizeof(*tegra_gpio_banks),
                        GFP_KERNEL);
-       if (!tegra_gpio_banks) {
-               dev_err(&pdev->dev, "Couldn't allocate bank structure\n");
+       if (!tegra_gpio_banks)
                return -ENODEV;
-       }
 
        irq_domain = irq_domain_add_linear(pdev->dev.of_node,
                                           tegra_gpio_chip.ngpio,