mirror of
https://github.com/torvalds/linux.git
synced 2024-10-30 16:51:45 +00:00
regulator: arizona-ldo1: 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
38dbfb59d1
commit
f4a6c5b41c
@ -189,10 +189,8 @@ static int arizona_ldo1_probe(struct platform_device *pdev)
|
||||
int ret;
|
||||
|
||||
ldo1 = devm_kzalloc(&pdev->dev, sizeof(*ldo1), GFP_KERNEL);
|
||||
if (ldo1 == NULL) {
|
||||
dev_err(&pdev->dev, "Unable to allocate private data\n");
|
||||
if (!ldo1)
|
||||
return -ENOMEM;
|
||||
}
|
||||
|
||||
ldo1->arizona = arizona;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user