regulator: max8907: 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
c61f140139
commit
d016bdc7f4
|
@ -292,10 +292,9 @@ static int max8907_regulator_probe(struct platform_device *pdev)
|
|||
return ret;
|
||||
|
||||
pmic = devm_kzalloc(&pdev->dev, sizeof(*pmic), GFP_KERNEL);
|
||||
if (!pmic) {
|
||||
dev_err(&pdev->dev, "Failed to alloc pmic\n");
|
||||
if (!pmic)
|
||||
return -ENOMEM;
|
||||
}
|
||||
|
||||
platform_set_drvdata(pdev, pmic);
|
||||
|
||||
memcpy(pmic->desc, max8907_regulators, sizeof(pmic->desc));
|
||||
|
|
Loading…
Reference in New Issue