regulator: fan53555: Remove redundant error message
authorSachin Kamat <sachin.kamat@linaro.org>
Thu, 20 Feb 2014 08:53:04 +0000 (14:23 +0530)
committerMark Brown <broonie@linaro.org>
Thu, 20 Feb 2014 11:20:39 +0000 (20:20 +0900)
kzalloc prints its own OOM message upon failure.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Cc: Yunfan Zhang <yfzhang@marvell.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/regulator/fan53555.c

index a10df7d150cc7406828ce383da8a325e5a0704b2..714fd9a89aa137b7484e437ff5017374e834f191 100644 (file)
@@ -244,10 +244,9 @@ static int fan53555_regulator_probe(struct i2c_client *client,
 
        di = devm_kzalloc(&client->dev, sizeof(struct fan53555_device_info),
                                        GFP_KERNEL);
-       if (!di) {
-               dev_err(&client->dev, "Failed to allocate device info data!\n");
+       if (!di)
                return -ENOMEM;
-       }
+
        di->regmap = devm_regmap_init_i2c(client, &fan53555_regmap_config);
        if (IS_ERR(di->regmap)) {
                dev_err(&client->dev, "Failed to allocate regmap!\n");
This page took 0.026756 seconds and 5 git commands to generate.