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

Commit 765309f0 authored by Aravind Kumar's avatar Aravind Kumar Committed by Gerrit - the friendly Code Review server
Browse files

ASoC: wcd9306: avoid null pointer dereference



Change dev_err to pr_err to avoid null pointer
dereference

CRs-Fixed: 747347
Change-Id: Ifdce5c4238eb3f82769b4cccfacda7187d899306
Signed-off-by: default avatarAravind Kumar <akumark@codeaurora.org>
parent ddbf7b7b
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -6187,7 +6187,7 @@ static struct regulator *tapan_codec_find_regulator(
	struct wcd9xxx *core = NULL;
	struct wcd9xxx *core = NULL;


	if (codec == NULL) {
	if (codec == NULL) {
		dev_err(codec->dev, "%s: codec not initialized\n", __func__);
		pr_err("%s: codec not initialized\n", __func__);
		return NULL;
		return NULL;
	}
	}
	core = dev_get_drvdata(codec->dev->parent);
	core = dev_get_drvdata(codec->dev->parent);