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

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

Merge "msm: ipa: Fix ipa ready cb return value"

parents c16ea208 e58cb883
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -153,10 +153,16 @@ int ipa2_register_ipa_ready_cb(void (*ipa_ready_cb)(void *), void *user_data)
{
	int ret;

	if (!ipa_ctx) {
		IPAERR("IPA ctx is null\n");
		return -ENXIO;
	}

	ret = ipa2_uc_state_check();
	if (ret) {
		ipa_ctx->uc_ntn_ctx.uc_ready_cb = ipa_ready_cb;
		ipa_ctx->uc_ntn_ctx.priv = user_data;
		return 0;
	}

	return -EEXIST;