[libvirt] [PATCH v1 09/21] qemu_monitor_json.c: remove unneeded cleanup label

Ján Tomko jtomko at redhat.com
Tue Nov 12 16:32:54 UTC 2019


On Mon, Oct 21, 2019 at 03:18:59PM -0300, Daniel Henrique Barboza wrote:
>qemuMonitorJSONBlockIoThrottleInfo uses a macro called
>GET_THROTTLE_STATS that's defined outside of the function,
>which references a 'cleanup' label. GET_THROTTLE_STATS is
>only used inside qemuMonitorJSONBlockIoThrottleInfo (in fact,
>the macro is undef right after it) thus it is safe to erase
>the 'cleanup' reference inside the macro, then proceed
>with the usual cleanup label removal inside
>qemuMonitorJSONBlockIoThrottleInfo.
>
>Signed-off-by: Daniel Henrique Barboza <danielhb413 at gmail.com>
>---
> src/qemu/qemu_monitor_json.c | 15 ++++++---------
> 1 file changed, 6 insertions(+), 9 deletions(-)
>

Reviewed-by: Ján Tomko <jtomko at redhat.com>

Jano
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20191112/69ffee48/attachment-0001.sig>


More information about the libvir-list mailing list