mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-24 16:40:59 +07:00
regulator: as3711: Remove redundant error message
kzalloc prints its own OOM message upon failure. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Signed-off-by: Mark Brown <broonie@linaro.org>
This commit is contained in:
parent
eecb02c003
commit
31833581de
@ -245,10 +245,8 @@ static int as3711_regulator_probe(struct platform_device *pdev)
|
|||||||
|
|
||||||
regs = devm_kzalloc(&pdev->dev, AS3711_REGULATOR_NUM *
|
regs = devm_kzalloc(&pdev->dev, AS3711_REGULATOR_NUM *
|
||||||
sizeof(struct as3711_regulator), GFP_KERNEL);
|
sizeof(struct as3711_regulator), GFP_KERNEL);
|
||||||
if (!regs) {
|
if (!regs)
|
||||||
dev_err(&pdev->dev, "Memory allocation failed exiting..\n");
|
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
}
|
|
||||||
|
|
||||||
for (id = 0, ri = as3711_reg_info; id < AS3711_REGULATOR_NUM; ++id, ri++) {
|
for (id = 0, ri = as3711_reg_info; id < AS3711_REGULATOR_NUM; ++id, ri++) {
|
||||||
reg = ®s[id];
|
reg = ®s[id];
|
||||||
|
Loading…
Reference in New Issue
Block a user