Skip to content

Commit

Permalink
regulator: wm8994: Remove redundant error message
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Sachin Kamat authored and Mark Brown committed Feb 20, 2014
1 parent 38dbfb5 commit 4deaf85
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/regulator/wm8994-regulator.c
Original file line number Diff line number Diff line change
Expand Up @@ -134,10 +134,8 @@ static int wm8994_ldo_probe(struct platform_device *pdev)
dev_dbg(&pdev->dev, "Probing LDO%d\n", id + 1);

ldo = devm_kzalloc(&pdev->dev, sizeof(struct wm8994_ldo), GFP_KERNEL);
if (ldo == NULL) {
dev_err(&pdev->dev, "Unable to allocate private data\n");
if (!ldo)
return -ENOMEM;
}

ldo->wm8994 = wm8994;
ldo->supply = wm8994_ldo_consumer[id];
Expand Down

0 comments on commit 4deaf85

Please sign in to comment.