regulator: rc5t583: Remove redundant error message
authorSachin Kamat <sachin.kamat@linaro.org>
Thu, 20 Feb 2014 08:53:10 +0000 (14:23 +0530)
committerMark Brown <broonie@linaro.org>
Thu, 20 Feb 2014 11:26:05 +0000 (20:26 +0900)
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>
drivers/regulator/rc5t583-regulator.c

index 22d6fd1281b1e4cf44b474decbe2eee6cc9f26eb..4c414ae109ae5eb6edc44094e0c608a325a9cb63 100644 (file)
@@ -134,10 +134,8 @@ static int rc5t583_regulator_probe(struct platform_device *pdev)
 
        regs = devm_kzalloc(&pdev->dev, RC5T583_REGULATOR_MAX *
                        sizeof(struct rc5t583_regulator), GFP_KERNEL);
-       if (!regs) {
-               dev_err(&pdev->dev, "Memory allocation failed exiting..\n");
+       if (!regs)
                return -ENOMEM;
-       }
 
 
        for (id = 0; id < RC5T583_REGULATOR_MAX; ++id) {