Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

gpio: moxart: 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 <jg1.han@samsung.com>
Reviewed-by: Javier Martinez Canillas <javier@dowhile0.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>

authored by

Jingoo Han and committed by
Linus Walleij
40b295fa 1981d084

+1 -3
+1 -3
drivers/gpio/gpio-moxart.c
··· 113 113 int ret; 114 114 115 115 mgc = devm_kzalloc(dev, sizeof(*mgc), GFP_KERNEL); 116 - if (!mgc) { 117 - dev_err(dev, "can't allocate GPIO chip container\n"); 116 + if (!mgc) 118 117 return -ENOMEM; 119 - } 120 118 mgc->gpio = moxart_template_chip; 121 119 122 120 res = platform_get_resource(pdev, IORESOURCE_MEM, 0);