]> xenbits.xensource.com Git - libvirt.git/commit
util: buffer: Simplify convoluted condition
authorPeter Krempa <pkrempa@redhat.com>
Thu, 24 Oct 2019 06:06:21 +0000 (08:06 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Thu, 24 Oct 2019 17:35:34 +0000 (19:35 +0200)
commita5217cd7c04497056f535dc6e6938fea0f6a5865
tree3307b6f2a164cee0fe7c95028a977f00dc4aafc6
parent27bab9cac4765e21876722f27bcbcf0745e02af7
util: buffer: Simplify convoluted condition

Spare a few more lines rather than having a condition with a nested
ternary.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Jonathon Jongsma <jjongsma@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/util/virbuffer.c