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

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

ASoC: tpa6130a2: Remove redundant OOM message



Let memory subsystem handle the error logging.

Signed-off-by: default avatarSachin Kamat <sachin.kamat@samsung.com>
Signed-off-by: default avatarMark Brown <broonie@linaro.org>
parent b1117f52
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -381,10 +381,8 @@ static int tpa6130a2_probe(struct i2c_client *client,
	dev = &client->dev;

	data = devm_kzalloc(&client->dev, sizeof(*data), GFP_KERNEL);
	if (data == NULL) {
		dev_err(dev, "Can not allocate memory\n");
	if (!data)
		return -ENOMEM;
	}

	if (pdata) {
		data->power_gpio = pdata->power_gpio;