diff options
author | Jingoo Han <jg1.han@samsung.com> | 2014-04-29 12:46:22 +0400 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2014-05-09 12:55:35 +0400 |
commit | 50908d61ea483e0670768a712c166c3e4b2a30a3 (patch) | |
tree | ed437ba89546eb87525c005d0cd0bc981874b99c /drivers/gpio | |
parent | 0661175a2ae7f83a3d8963e36ca4cbffc6a686d0 (diff) | |
download | linux-50908d61ea483e0670768a712c166c3e4b2a30a3.tar.xz |
gpio: zevio: 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>
Diffstat (limited to 'drivers/gpio')
-rw-r--r-- | drivers/gpio/gpio-zevio.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/gpio/gpio-zevio.c b/drivers/gpio/gpio-zevio.c index 6270f755d0ed..4c173ad4c23c 100644 --- a/drivers/gpio/gpio-zevio.c +++ b/drivers/gpio/gpio-zevio.c @@ -178,10 +178,8 @@ static int zevio_gpio_probe(struct platform_device *pdev) int status, i; controller = devm_kzalloc(&pdev->dev, sizeof(*controller), GFP_KERNEL); - if (!controller) { - dev_err(&pdev->dev, "not enough free memory\n"); + if (!controller) return -ENOMEM; - } /* Copy our reference */ controller->chip.gc = zevio_gpio_chip; |