Commit 6c315afe authored by Mark Brown's avatar Mark Brown

regulator: fixed: Remove print on allocation failure

OOMs are very verbose, we don't need to print an additional error message
when we fail to allocate.
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20220324201854.3107077-1-broonie@kernel.orgSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent 41812783
......@@ -236,12 +236,9 @@ static int reg_fixed_voltage_probe(struct platform_device *pdev)
drvdata->desc.supply_name = devm_kstrdup(&pdev->dev,
config->input_supply,
GFP_KERNEL);
if (!drvdata->desc.supply_name) {
dev_err(&pdev->dev,
"Failed to allocate input supply\n");
if (!drvdata->desc.supply_name)
return -ENOMEM;
}
}
if (config->microvolts)
drvdata->desc.n_voltages = 1;
......
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