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

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

ASoC: sta529: 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 be813334
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -380,10 +380,8 @@ static int sta529_i2c_probe(struct i2c_client *i2c,
		return -EINVAL;

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

	sta529->regmap = devm_regmap_init_i2c(i2c, &sta529_regmap);
	if (IS_ERR(sta529->regmap)) {