On 09/11/2023 15:30, David Woodhouse wrote:
From: David Woodhouse <d...@amazon.co.uk>

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 <d...@amazon.co.uk>
---
  hw/block/xen-block.c | 24 +++++++++++++++++++++---
  1 file changed, 21 insertions(+), 3 deletions(-)


Reviewed-by: Paul Durrant <p...@xen.org>


Reply via email to