[libvirt] [PATCH] conf: Fix initialization value of 'multi' in PCI address
Martin Kletzander
mkletzan at redhat.com
Fri Sep 2 13:18:18 UTC 2016
On Mon, Aug 15, 2016 at 06:22:25AM +0200, Xian Han Yu wrote:
>The 'multi' element in PCI address struct used as 'virTristateSwitch',
>and its default value is 'VIR_TRISTATE_SWITCH_ABSENT'. Current PCI
>process use 'false' to initialization 'multi', which is ambiguously
>for assignment or comparison. This patch use '{0}' to initialize
>the whole PCI address struct, which fix the 'multi' initialization
>and makes code more simplify and explicitly.
>
>Signed-off-by: Xian Han Yu <xhyubj at linux.vnet.ibm.com>
>---
> src/conf/domain_addr.c | 2 +-
> src/conf/node_device_conf.c | 2 +-
> src/qemu/qemu_domain_address.c | 2 +-
> 3 files changed, 3 insertions(+), 3 deletions(-)
>
ACK, I'll push it after release since there's no bug that's fixed by
this commit.
Martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: Digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20160902/487a187f/attachment-0001.sig>
More information about the libvir-list
mailing list