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

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

ASoC: wl1273: 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 04cc41a8
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -461,10 +461,8 @@ static int wl1273_probe(struct snd_soc_codec *codec)
	}

	wl1273 = kzalloc(sizeof(struct wl1273_priv), GFP_KERNEL);
	if (wl1273 == NULL) {
		dev_err(codec->dev, "Cannot allocate memory.\n");
	if (!wl1273)
		return -ENOMEM;
	}

	wl1273->mode = WL1273_MODE_BT;
	wl1273->core = *core;