aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/regulator/as3711-regulator.c
diff options
context:
space:
mode:
authorSachin Kamat <sachin.kamat@linaro.org>2014-02-18 16:11:11 +0530
committerMark Brown <broonie@linaro.org>2014-02-20 01:38:41 +0900
commit31833581de5a4bd2f087c361f757865d1d12f23d (patch)
tree3035580466c5b83ae5af8546d7d51aedb8906468 /drivers/regulator/as3711-regulator.c
parentregulator: as3711: Use of_get_child_by_name (diff)
downloadwireguard-linux-31833581de5a4bd2f087c361f757865d1d12f23d.tar.xz
wireguard-linux-31833581de5a4bd2f087c361f757865d1d12f23d.zip
regulator: as3711: 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/as3711-regulator.c')
-rw-r--r--drivers/regulator/as3711-regulator.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/regulator/as3711-regulator.c b/drivers/regulator/as3711-regulator.c
index 856c55f3a832..b47283f91e2d 100644
--- a/drivers/regulator/as3711-regulator.c
+++ b/drivers/regulator/as3711-regulator.c
@@ -245,10 +245,8 @@ static int as3711_regulator_probe(struct platform_device *pdev)
regs = devm_kzalloc(&pdev->dev, AS3711_REGULATOR_NUM *
sizeof(struct as3711_regulator), GFP_KERNEL);
- if (!regs) {
- dev_err(&pdev->dev, "Memory allocation failed exiting..\n");
+ if (!regs)
return -ENOMEM;
- }
for (id = 0, ri = as3711_reg_info; id < AS3711_REGULATOR_NUM; ++id, ri++) {
reg = &regs[id];