aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJingoo Han <[email protected]>2014-04-29 17:32:01 +0900
committerLinus Walleij <[email protected]>2014-05-09 10:54:37 +0200
commit1a25908d79dfe3cbfe5d45eaec3797d4e6c3c19a (patch)
tree8fcb6239f51dee8055e8a6fc0c5846f0654cf0d6
parente8a71aaa88c1c47c4fd91e75a329888e75dcc3c3 (diff)
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 <[email protected]> Reviewed-by: Javier Martinez Canillas <[email protected]> Signed-off-by: Linus Walleij <[email protected]>
-rw-r--r--drivers/gpio/gpio-adp5588.c4
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;