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

Commit 8c4a79b8 authored by Shubhraprakash Das's avatar Shubhraprakash Das Committed by Jing Zhou
Browse files

msm: camera: isp: Remove memset and spin lock initialization



Do not memset the buffer queue since its already reset during free.
This also removes the requirement to reinitialize the buffer queue
lock

Change-Id: Ifccbd3fbffb822f47898cff5bfcae0e53ef7f275
Signed-off-by: default avatarShubhraprakash Das <sadas@codeaurora.org>
Signed-off-by: default avatarJing Zhou <jzhou70@codeaurora.org>
parent b7636c9d
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -164,8 +164,6 @@ static uint32_t msm_isp_get_buf_handle(

	for (i = 0; i < buf_mgr->num_buf_q; i++) {
		if (buf_mgr->bufq[i].bufq_handle == 0) {
			memset(&buf_mgr->bufq[i],
				0, sizeof(struct msm_isp_bufq));
			buf_mgr->bufq[i].bufq_handle =
				embedded_stream_id << 8 | i;
			return buf_mgr->bufq[i].bufq_handle;