Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2ea2583f authored by Sachin Kamat's avatar Sachin Kamat Committed by Mark Brown
Browse files

regulator: rc5t583: Remove redundant error message



kzalloc prints its own OOM message upon failure.

Signed-off-by: default avatarSachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: default avatarMark Brown <broonie@linaro.org>
parent 3f24bf70
Loading
Loading
Loading
Loading
+1 −3
Original line number Original line Diff line number Diff line
@@ -134,10 +134,8 @@ static int rc5t583_regulator_probe(struct platform_device *pdev)


	regs = devm_kzalloc(&pdev->dev, RC5T583_REGULATOR_MAX *
	regs = devm_kzalloc(&pdev->dev, RC5T583_REGULATOR_MAX *
			sizeof(struct rc5t583_regulator), GFP_KERNEL);
			sizeof(struct rc5t583_regulator), GFP_KERNEL);
	if (!regs) {
	if (!regs)
		dev_err(&pdev->dev, "Memory allocation failed exiting..\n");
		return -ENOMEM;
		return -ENOMEM;
	}




	for (id = 0; id < RC5T583_REGULATOR_MAX; ++id) {
	for (id = 0; id < RC5T583_REGULATOR_MAX; ++id) {