Skip to content

Commit

Permalink
regulator: max8649: remove unnecessary OOM messages
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jingoo Han authored and Mark Brown committed Jun 2, 2014
1 parent c9eaa44 commit 6e27e99
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/regulator/max8649.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit 6e27e99

Please sign in to comment.