From: Jingoo Han Date: Mon, 2 Jun 2014 06:29:57 +0000 (+0900) Subject: regulator: max8649: remove unnecessary OOM messages X-Git-Tag: firefly_0821_release~176^2~3481^2~1^4~4^5 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=6e27e99613b36e68bdbee2a8d21b39fc243fef93;p=firefly-linux-kernel-4.4.55.git regulator: max8649: 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 Signed-off-by: Mark Brown --- diff --git a/drivers/regulator/max8649.c b/drivers/regulator/max8649.c index 3172da847d24..c8bddcc8f911 100644 --- a/drivers/regulator/max8649.c +++ b/drivers/regulator/max8649.c @@ -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)) {