From: Jingoo Han Date: Tue, 29 Apr 2014 08:32:01 +0000 (+0900) Subject: gpio: adp5588: remove unnecessary OOM messages X-Git-Tag: v3.16-rc1~30^2~53^2~48 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=1a25908d79dfe3cbfe5d45eaec3797d4e6c3c19a;p=~emulex%2Finfiniband.git 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 Reviewed-by: Javier Martinez Canillas Signed-off-by: Linus Walleij --- diff --git a/drivers/gpio/gpio-adp5588.c b/drivers/gpio/gpio-adp5588.c index d974020b78b..ef19bc33f2b 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;