• J
    qemu_command: Resolve Coverity DEADCODE · 84bfb11b
    John Ferlan 提交于
    One useless warning, but the other one rather pertinent. On entry
    the 'trans' variable is initialized to VIR_DOMAIN_DISK_TRANS_DEFAULT.
    When the "trans" was found in the parsing loop it def->geometry.trans
    was assigned to the return from virDomainDiskGeometryTransTypeFromString
    and then 'trans' was used to do the comparison to see if it was valid.
    
    So remove 'trans' and use def->geometry.trans properly
    84bfb11b
qemu_command.c 417.2 KB