Re: [PATCH 1/9] tpm: Changed a qemu_mutex_lock to QEMU_LOCK_GUARD

2021-03-22 Thread Stefan Berger
On 3/10/21 10:15 PM, Mahmoud Mandour wrote: Removed a qemu_mutex_lock() and its respective qemu_mutex_unlock() and used QEMU_LOCK_GUARD instead. This simplifies the code by eliminiating gotos and removing the qemu_mutex_unlock() calls. Signed-off-by: Mahmoud Mandour --- backends/tpm/tpm_emu

Re: [PATCH 1/9] tpm: Changed a qemu_mutex_lock to QEMU_LOCK_GUARD

2021-03-11 Thread Marc-André Lureau
On Thu, Mar 11, 2021 at 1:26 PM Mahmoud Mandour wrote: > Removed a qemu_mutex_lock() and its respective qemu_mutex_unlock() > and used QEMU_LOCK_GUARD instead. This simplifies the code by > eliminiating gotos and removing the qemu_mutex_unlock() calls. > > Signed-off-by: Mahmoud Mandour > Revie

[PATCH 1/9] tpm: Changed a qemu_mutex_lock to QEMU_LOCK_GUARD

2021-03-11 Thread Mahmoud Mandour
Removed a qemu_mutex_lock() and its respective qemu_mutex_unlock() and used QEMU_LOCK_GUARD instead. This simplifies the code by eliminiating gotos and removing the qemu_mutex_unlock() calls. Signed-off-by: Mahmoud Mandour --- backends/tpm/tpm_emulator.c | 8 +++- 1 file changed, 3 insertion