projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4181278
)
regulator: fixed: Remove print on allocation failure
author
Mark Brown
<broonie@kernel.org>
Thu, 24 Mar 2022 20:18:54 +0000
(20:18 +0000)
committer
Mark Brown
<broonie@kernel.org>
Mon, 4 Apr 2022 07:48:30 +0000
(08:48 +0100)
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>
drivers/regulator/fixed.c
patch
|
blob
|
history
diff --git
a/drivers/regulator/fixed.c
b/drivers/regulator/fixed.c
index 599ad201dca758a64c97ed88622097859e306862..2a9867abba20c256ea4304acd301ea988b7384ba 100644
(file)
--- a/
drivers/regulator/fixed.c
+++ b/
drivers/regulator/fixed.c
@@
-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)