diff options
author | Jingoo Han <jg1.han@samsung.com> | 2014-04-29 12:32:01 +0400 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2014-05-09 12:54:37 +0400 |
commit | 1a25908d79dfe3cbfe5d45eaec3797d4e6c3c19a (patch) | |
tree | 8fcb6239f51dee8055e8a6fc0c5846f0654cf0d6 /drivers/gpio/gpio-adp5588.c | |
parent | e8a71aaa88c1c47c4fd91e75a329888e75dcc3c3 (diff) | |
download | linux-1a25908d79dfe3cbfe5d45eaec3797d4e6c3c19a.tar.xz |
gpio: adp5588: 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/gpio-adp5588.c')
-rw-r--r-- | drivers/gpio/gpio-adp5588.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/gpio/gpio-adp5588.c b/drivers/gpio/gpio-adp5588.c index d974020b78bb..ef19bc33f2bd 100644 --- a/drivers/gpio/gpio-adp5588.c +++ b/drivers/gpio/gpio-adp5588.c @@ -379,10 +379,8 @@ static int adp5588_gpio_probe(struct i2c_client *client, } dev = kzalloc(sizeof(*dev), GFP_KERNEL); - if (dev == NULL) { - dev_err(&client->dev, "failed to alloc memory\n"); + if (dev == NULL) return -ENOMEM; - } dev->client = client; |