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

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

ASoC: wm2000: Remove redundant OOM message



Let memory subsystem handle the error logging.

Signed-off-by: default avatarSachin Kamat <sachin.kamat@samsung.com>
Acked-by: default avatarCharles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: default avatarMark Brown <broonie@linaro.org>
parent 611d7a7b
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -826,10 +826,8 @@ static int wm2000_i2c_probe(struct i2c_client *i2c,

	wm2000 = devm_kzalloc(&i2c->dev, sizeof(struct wm2000_priv),
			      GFP_KERNEL);
	if (wm2000 == NULL) {
		dev_err(&i2c->dev, "Unable to allocate private data\n");
	if (!wm2000)
		return -ENOMEM;
	}

	mutex_init(&wm2000->lock);