mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-24 04:34:08 +08:00
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: Mark Brown <broonie@kernel.org> Link: https://lore.kernel.org/r/20220324201854.3107077-1-broonie@kernel.org Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
4181278305
commit
6c315afe65
@ -236,11 +236,8 @@ 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)
|
||||
|
Loading…
Reference in New Issue
Block a user