]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
gpio: lynxpoint: remove unnecessary OOM messages
authorJingoo Han <jg1.han@samsung.com>
Tue, 29 Apr 2014 08:36:26 +0000 (17:36 +0900)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 9 May 2014 08:54:52 +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-lynxpoint.c

index 9a82a9074a2cfb3a74a1c56592eaf680dee1fbef..2bea89b72508b8a54f7857c6ec3ca46e91c1c45e 100644 (file)
@@ -375,10 +375,8 @@ static int lp_gpio_probe(struct platform_device *pdev)
        int ret = -ENODEV;
 
        lg = devm_kzalloc(dev, sizeof(struct lp_gpio), GFP_KERNEL);
-       if (!lg) {
-               dev_err(dev, "can't allocate lp_gpio chip data\n");
+       if (!lg)
                return -ENOMEM;
-       }
 
        lg->pdev = pdev;
        platform_set_drvdata(pdev, lg);