summaryrefslogtreecommitdiffstats
path: root/drivers/regulator/arizona-ldo1.c
diff options
context:
space:
mode:
authorSachin Kamat <sachin.kamat@linaro.org>2014-02-18 16:11:09 +0530
committerMark Brown <broonie@linaro.org>2014-02-20 01:37:59 +0900
commitf4a6c5b41ced4737c6b811e295d947a76a41262a (patch)
treed5deac73d7d436d6ddc3a06b8336cb0c1f5daf96 /drivers/regulator/arizona-ldo1.c
parent38dbfb59d1175ef458d006556061adeaa8751b72 (diff)
downloadtalos-obmc-linux-f4a6c5b41ced4737c6b811e295d947a76a41262a.tar.gz
talos-obmc-linux-f4a6c5b41ced4737c6b811e295d947a76a41262a.zip
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>
Diffstat (limited to 'drivers/regulator/arizona-ldo1.c')
-rw-r--r--drivers/regulator/arizona-ldo1.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/regulator/arizona-ldo1.c b/drivers/regulator/arizona-ldo1.c
index 4f6c2055f6b2..d8e7db696d5a 100644
--- a/drivers/regulator/arizona-ldo1.c
+++ b/drivers/regulator/arizona-ldo1.c
@@ -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;
OpenPOWER on IntegriCloud