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

Commit 52fc2c64 authored by Ashok Vuyyuru's avatar Ashok Vuyyuru
Browse files

msm: ipa3: Use ipa3_check_qmi_response instead of checking return value



Instead of checking qmi response return value every time using
ipa3_check_qmi_response function for checking return value and response
result value for QMI messages.

Change-Id: Ie3cd93b86588760a96b0eccf78ccd45abb46afd0
Signed-off-by: default avatarAshok Vuyyuru <avuyyuru@codeaurora.org>
parent c5bc7f27
Loading
Loading
Loading
Loading
+10 −4
Original line number Diff line number Diff line
@@ -934,8 +934,11 @@ int ipa3_qmi_enable_force_clear_datapath_send(
			resp.resp.result);
		return resp.resp.result;
	}
	IPAWANDBG("SUCCESS\n");
	return rc;

	return ipa3_check_qmi_response(rc,
		QMI_IPA_ENABLE_FORCE_CLEAR_DATAPATH_REQ_V01,
		resp.resp.result,
		resp.resp.error, "ipa_enable_force_clear_datapath");
}

int ipa3_qmi_disable_force_clear_datapath_send(
@@ -988,8 +991,11 @@ int ipa3_qmi_disable_force_clear_datapath_send(
			resp.resp.result);
		return resp.resp.result;
	}
	IPAWANDBG("SUCCESS\n");
	return rc;

	return ipa3_check_qmi_response(rc,
		QMI_IPA_DISABLE_FORCE_CLEAR_DATAPATH_REQ_V01,
		resp.resp.result,
		resp.resp.error, "ipa_disable_force_clear_datapath");
}

/* sending filter-installed-notify-request to modem*/