Commit f1b3f903 authored by Sachin Kamat's avatar Sachin Kamat Committed by Mark Brown

regulator: fixed: 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 84d0ffbe
......@@ -130,10 +130,8 @@ static int reg_fixed_voltage_probe(struct platform_device *pdev)
drvdata = devm_kzalloc(&pdev->dev, sizeof(struct fixed_voltage_data),
GFP_KERNEL);
if (drvdata == NULL) {
dev_err(&pdev->dev, "Failed to allocate device data\n");
if (!drvdata)
return -ENOMEM;
}
drvdata->desc.name = devm_kstrdup(&pdev->dev,
config->supply_name,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment