Ver código fonte

regulator: max8997: 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 anos atrás
pai
commit
f0d5c73af6
1 arquivos alterados com 0 adições e 1 exclusões
  1. 0 1
      drivers/regulator/max8997.c

+ 0 - 1
drivers/regulator/max8997.c

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