summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSachin Kamat <sachin.kamat@linaro.org>2014-02-20 14:23:19 +0530
committerMark Brown <broonie@linaro.org>2014-02-20 21:02:22 +0900
commit96fa8c4b9b2c99ad6baa698c94d3fa295fa8f871 (patch)
tree05b9f7380f3f60ea3149c870bea0a001c42f205f
parent38dbfb59d1175ef458d006556061adeaa8751b72 (diff)
downloadlwn-96fa8c4b9b2c99ad6baa698c94d3fa295fa8f871.tar.gz
lwn-96fa8c4b9b2c99ad6baa698c94d3fa295fa8f871.zip
regulator: tps80031: 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>
-rw-r--r--drivers/regulator/tps80031-regulator.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/regulator/tps80031-regulator.c b/drivers/regulator/tps80031-regulator.c
index 71f457a42623..ac88c988bb2e 100644
--- a/drivers/regulator/tps80031-regulator.c
+++ b/drivers/regulator/tps80031-regulator.c
@@ -693,10 +693,8 @@ static int tps80031_regulator_probe(struct platform_device *pdev)
pmic = devm_kzalloc(&pdev->dev,
TPS80031_REGULATOR_MAX * sizeof(*pmic), GFP_KERNEL);
- if (!pmic) {
- dev_err(&pdev->dev, "mem alloc for pmic failed\n");
+ if (!pmic)
return -ENOMEM;
- }
for (num = 0; num < TPS80031_REGULATOR_MAX; ++num) {
tps_pdata = pdata->regulator_pdata[num];