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

Commit 73af8982 authored by Manoj Prabhu B's avatar Manoj Prabhu B Committed by Chris Lew
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 f68e6b7e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -354,8 +354,8 @@ int diag_md_init(void)
			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;