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

Commit c5b14abc authored by Manoj Prabhu B's avatar Manoj Prabhu B
Browse files

diag: Initialize spin lock once per memory device channel



Initialize the spin lock only once per memory device channel
while initializing the channel and channel buffers.

Change-Id: Iabf2db03436102310ef85f04b59e6160d49ef5f5
Signed-off-by: default avatarSreelakshmi Gownipalli <sgownipa@codeaurora.org>
Signed-off-by: default avatarManoj Prabhu B <bmanoj@codeaurora.org>
parent a80e267a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -356,8 +356,8 @@ int diag_md_init()
			ch->tbl[j].buf = NULL;
			ch->tbl[j].len = 0;
			ch->tbl[j].ctx = 0;
			spin_lock_init(&(ch->lock));
		}
		spin_lock_init(&(ch->lock));
	}

	return 0;