]> git.ipfire.org Git - thirdparty/libvirt.git/commit
util: pci: Remove always-false condition
authorPeter Krempa <pkrempa@redhat.com>
Mon, 11 Nov 2019 12:03:14 +0000 (13:03 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 11 Nov 2019 15:48:26 +0000 (16:48 +0100)
commite39d3424e329308d9e02b6df774f706a007ffd30
tree7ba0a405774d961a5410f8e6aa9be674d4320d2d
parent63d604088c7265d30aa4ce669331bfd6bc9ab51b
util: pci: Remove always-false condition

Commit d19c21429fd modified the condition so that it checks whether the
value is more than 0xFFFFFFFF. Since addr->domain is an unsigned int, it
will never be more than that.

Remove the whole check

src/util/virpci.c:1291:22: error: result of comparison 'unsigned int' > 4294967295 is always false [-Werror,-Wtautological-type-limit-compare]
    if (addr->domain > 0xFFFFFFFF) {
        ~~~~~~~~~~~~ ^ ~~~~~~~~~~

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
src/util/virpci.c