]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
regulator: max8649: remove unnecessary OOM messages
authorJingoo Han <jg1.han@samsung.com>
Mon, 2 Jun 2014 06:29:57 +0000 (15:29 +0900)
committerMark Brown <broonie@linaro.org>
Mon, 2 Jun 2014 14:12:16 +0000 (15:12 +0100)
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>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/regulator/max8649.c

index 3172da847d248bfbb039162447d282ee99299abd..c8bddcc8f911d11d90e32d18e0d191234bae1656 100644 (file)
@@ -161,10 +161,8 @@ static int max8649_regulator_probe(struct i2c_client *client,
 
        info = devm_kzalloc(&client->dev, sizeof(struct max8649_regulator_info),
                            GFP_KERNEL);
-       if (!info) {
-               dev_err(&client->dev, "No enough memory\n");
+       if (!info)
                return -ENOMEM;
-       }
 
        info->regmap = devm_regmap_init_i2c(client, &max8649_regmap_config);
        if (IS_ERR(info->regmap)) {