]> git.openfabrics.org - ~emulex/infiniband.git/commitdiff
gpio: adp5588: remove unnecessary OOM messages
authorJingoo Han <jg1.han@samsung.com>
Tue, 29 Apr 2014 08:32:01 +0000 (17:32 +0900)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 9 May 2014 08:54:37 +0000 (10:54 +0200)
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>
drivers/gpio/gpio-adp5588.c

index d974020b78bb2314dc0bf5d5e00f6048ccf561ff..ef19bc33f2bd3845cdc46b396e2f2949b36e15df 100644 (file)
@@ -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;