Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit df948bbf authored by Sachin Kamat's avatar Sachin Kamat Committed by Mark Brown
Browse files

regulator: fan53555: Remove redundant error message



kzalloc prints its own OOM message upon failure.

Signed-off-by: default avatarSachin Kamat <sachin.kamat@linaro.org>
Cc: Yunfan Zhang <yfzhang@marvell.com>
Signed-off-by: default avatarMark Brown <broonie@linaro.org>
parent 145fe1e1
Loading
Loading
Loading
Loading
+2 −3
Original line number Original line Diff line number Diff line
@@ -244,10 +244,9 @@ static int fan53555_regulator_probe(struct i2c_client *client,


	di = devm_kzalloc(&client->dev, sizeof(struct fan53555_device_info),
	di = devm_kzalloc(&client->dev, sizeof(struct fan53555_device_info),
					GFP_KERNEL);
					GFP_KERNEL);
	if (!di) {
	if (!di)
		dev_err(&client->dev, "Failed to allocate device info data!\n");
		return -ENOMEM;
		return -ENOMEM;
	}

	di->regmap = devm_regmap_init_i2c(client, &fan53555_regmap_config);
	di->regmap = devm_regmap_init_i2c(client, &fan53555_regmap_config);
	if (IS_ERR(di->regmap)) {
	if (IS_ERR(di->regmap)) {
		dev_err(&client->dev, "Failed to allocate regmap!\n");
		dev_err(&client->dev, "Failed to allocate regmap!\n");