From: Jingoo Han Date: Tue, 29 Apr 2014 08:36:26 +0000 (+0900) Subject: gpio: lynxpoint: remove unnecessary OOM messages X-Git-Tag: v4.13~6902^2~56^2~44 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=1981d0844d62bef533deab531f3f7e176195c2bf;p=mirror_ubuntu-bionic-kernel.git gpio: lynxpoint: remove unnecessary OOM messages The site-specific OOM messages are unnecessary, because they duplicate the MM subsystem generic OOM message. Signed-off-by: Jingoo Han Reviewed-by: Javier Martinez Canillas Signed-off-by: Linus Walleij --- diff --git a/drivers/gpio/gpio-lynxpoint.c b/drivers/gpio/gpio-lynxpoint.c index 9a82a9074a2c..2bea89b72508 100644 --- a/drivers/gpio/gpio-lynxpoint.c +++ b/drivers/gpio/gpio-lynxpoint.c @@ -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);