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

Commit 88075ec7 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "ASoC: wcd_cpe: Update the logic to check for null pointer"

parents ac5565ef 04b5d1cd
Loading
Loading
Loading
Loading
+7 −3
Original line number Diff line number Diff line
@@ -1048,14 +1048,18 @@ static void wcd_cpe_svc_event_cb(const struct cpe_svc_notification *param)
	}

	codec = param->private_data;

	if (!codec || !wcd_cpe_get_core_handle(codec)) {
		pr_err("%s: Invalid handle to codec/core\n",
	if (!codec) {
		pr_err("%s: Invalid handle to codec\n",
			__func__);
		return;
	}

	core = wcd_cpe_get_core_handle(codec);
	if (!core) {
		pr_err("%s: Invalid handle to core\n",
			__func__);
		return;
	}

	dev_dbg(core->dev,
		"%s: event = 0x%x\n", __func__, param->event);