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

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

ASoC: wm9090: 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 549f66e0
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -613,10 +613,8 @@ static int wm9090_i2c_probe(struct i2c_client *i2c,
	int ret;

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

	wm9090->regmap = devm_regmap_init_i2c(i2c, &wm9090_regmap);
	if (IS_ERR(wm9090->regmap)) {