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

Commit 98472473 authored by Karthik Anantha Ram's avatar Karthik Anantha Ram
Browse files

msm: camera: icp: Remove redundant update of size field



Previously the size_in_words parameter in hfi_read held only
the size of one message packet. This change removes assigning
this field to size of one message packet as it is overwritten
with the re-calculated size of all packets present in the
queue at that instant.

Change-Id: I4421d7429551f7dfdb2c197ecd3e1d466687bb09
Signed-off-by: default avatarKarthik Anantha Ram <kartanan@codeaurora.org>
parent 79e36d43
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -169,7 +169,6 @@ int64_t hfi_read_message(uint32_t *pmsg, uint8_t q_id)

	read_ptr = (uint32_t *)(read_q + q->qhdr_read_idx);
	write_ptr = (uint32_t *)(read_q + q->qhdr_write_idx);
	size_in_words = (*read_ptr) >> BYTE_WORD_SHIFT;

	if (write_ptr > read_ptr)
		size_in_words = write_ptr - read_ptr;