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

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

ASoC: sgtl5000: 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 10d95ad4
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -843,10 +843,8 @@ static int ldo_regulator_register(struct snd_soc_codec *codec,

	ldo = kzalloc(sizeof(struct ldo_regulator), GFP_KERNEL);

	if (!ldo) {
		dev_err(codec->dev, "failed to allocate ldo_regulator\n");
	if (!ldo)
		return -ENOMEM;
	}

	ldo->desc.name = kstrdup(dev_name(codec->dev), GFP_KERNEL);
	if (!ldo->desc.name) {