monitor: Use LOCK_GUARD macros
commit0210c3b39bef08b7e1d92f28ece771c1970c5f35
authorDr. David Alan Gilbert <dgilbert@redhat.com>
Tue, 22 Sep 2020 09:57:41 +0000 (22 10:57 +0100)
committerDr. David Alan Gilbert <dgilbert@redhat.com>
Fri, 25 Sep 2020 11:45:58 +0000 (25 12:45 +0100)
tree4407a624976fbfa500b2192ddf5f917c0c4d0b0f
parent894f021411885ac11c53f1e4d6e48c630ce1bc85
monitor: Use LOCK_GUARD macros

Use the lock guard macros in monitor/misc.c - saves
a lot of unlocks in error paths, and the occasional goto.

Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Message-Id: <20200922095741.101911-1-dgilbert@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
monitor/misc.c