Bladeren bron

regulator: rc5t583: 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 jaren geleden
bovenliggende
commit
2ea2583f2f
1 gewijzigde bestanden met toevoegingen van 1 en 3 verwijderingen
  1. 1 3
      drivers/regulator/rc5t583-regulator.c

+ 1 - 3
drivers/regulator/rc5t583-regulator.c

@@ -134,10 +134,8 @@ static int rc5t583_regulator_probe(struct platform_device *pdev)
 
 	regs = devm_kzalloc(&pdev->dev, RC5T583_REGULATOR_MAX *
 			sizeof(struct rc5t583_regulator), GFP_KERNEL);
-	if (!regs) {
-		dev_err(&pdev->dev, "Memory allocation failed exiting..\n");
+	if (!regs)
 		return -ENOMEM;
-	}
 
 
 	for (id = 0; id < RC5T583_REGULATOR_MAX; ++id) {