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

Commit e96f9cc0 authored by Andrei Danaila's avatar Andrei Danaila
Browse files

mhi: core: Initialize the transaction status



Initialize the transaction status return code for the client
to a known value.

CRs-Fixed: 836433
Change-Id: I8023bd29b6ce36f69dfc3d2844803696eacadeb1
Signed-off-by: default avatarAndrei Danaila <adanaila@codeaurora.org>
parent 79badf5d
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -260,8 +260,10 @@ int parse_event_thread(void *ctxt)
struct mhi_result *mhi_poll(struct mhi_client_handle *client_handle)
{
	enum MHI_STATUS ret_val;

	client_handle->result.payload_buf = 0;
	client_handle->result.bytes_xferd = 0;
	client_handle->result.transaction_status = 0;
	ret_val = mhi_process_event_ring(client_handle->mhi_dev_ctxt,
				client_handle->event_ring_index,
				1);