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

Commit bd9292f2 authored by Yao Jiang's avatar Yao Jiang
Browse files

soc: qcom: hab: unify variable type to avoid implicit conversion



correcting the type of sizebytes and total_size to size_t,it can avoid
implicit conversion which maybe cause some unknown issue.

Change-Id: I1c1cc9e92ca2920cc49685edef0d928dd67454c7
Signed-off-by: default avatarYao Jiang <yaojia@codeaurora.org>
parent 9fcd72d5
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -39,7 +39,7 @@ int physical_channel_send(struct physical_channel *pchan,
		struct hab_header *header,
		void *payload)
{
	int sizebytes = HAB_HEADER_GET_SIZE(*header);
	size_t sizebytes = HAB_HEADER_GET_SIZE(*header);
	struct ghs_vdev *dev  = (struct ghs_vdev *)pchan->hyp_data;
	GIPC_Result result;
	uint8_t *msg;
+2 −2
Original line number Diff line number Diff line
@@ -40,9 +40,9 @@ int physical_channel_send(struct physical_channel *pchan,
		struct hab_header *header,
		void *payload)
{
	int sizebytes = HAB_HEADER_GET_SIZE(*header);
	size_t sizebytes = HAB_HEADER_GET_SIZE(*header);
	struct qvm_channel *dev  = (struct qvm_channel *)pchan->hyp_data;
	int total_size = sizeof(*header) + sizebytes;
	size_t total_size = sizeof(*header) + sizebytes;
	int irqs_disabled = irqs_disabled();

	if (total_size > dev->pipe_ep->tx_info.sh_buf->size)