qemu/hw/block
David Woodhouse 6f7997e004 hw/xen: clean up xen_block_find_free_vdev() to avoid Coverity false positive
Coverity couldn't see that nr_existing was always going to be zero when
qemu_xen_xs_directory() returned NULL in the ENOENT case (CID 1523906).

Perhaps more to the point, neither could Peter at first glance. Improve
the code to hopefully make it clearer to Coverity and human reviewers
alike.

Signed-off-by: David Woodhouse <dwmw@amazon.co.uk>
Reviewed-by: Paul Durrant <paul@xen.org>
2023-11-21 11:45:06 +00:00
..
dataplane virtio-blk: remove batch notification BH 2023-10-31 15:42:17 +01:00
block.c
cdrom.c
ecc.c
fdc-internal.h
fdc-isa.c
fdc-sysbus.c
fdc.c
hd-geometry.c
Kconfig
m25p80_sfdp.c
m25p80_sfdp.h
m25p80.c
meson.build
nand.c
onenand.c
pflash_cfi01.c
pflash_cfi02.c
swim.c swim: update IWM/ISM register block decoding 2023-10-06 10:33:43 +02:00
tc58128.c
trace-events swim: update IWM/ISM register block decoding 2023-10-06 10:33:43 +02:00
trace.h
vhost-user-blk.c virtio,pc,pci: features, cleanups 2023-10-23 14:45:29 -07:00
virtio-blk-common.c
virtio-blk.c util/defer-call: move defer_call() to util/ 2023-10-31 15:41:42 +01:00
xen_blkif.h
xen-block.c hw/xen: clean up xen_block_find_free_vdev() to avoid Coverity false positive 2023-11-21 11:45:06 +00:00