Browse Source

regulator: max77686: Remove redundant error message

kzalloc prints its own OOM message upon failure.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Mark Brown <broonie@linaro.org>
Sachin Kamat 11 years ago
parent
commit
7c2ee82c16
1 changed files with 0 additions and 2 deletions
  1. 0 2
      drivers/regulator/max77686.c

+ 0 - 2
drivers/regulator/max77686.c

@@ -410,8 +410,6 @@ static int max77686_pmic_dt_parse_pdata(struct platform_device *pdev,
 	rdata = devm_kzalloc(&pdev->dev, sizeof(*rdata) *
 			     pdata->num_regulators, GFP_KERNEL);
 	if (!rdata) {
-		dev_err(&pdev->dev,
-			"could not allocate memory for regulator data\n");
 		of_node_put(regulators_np);
 		return -ENOMEM;
 	}