diff options
| author | Eric Blake <eblake@redhat.com> | 2020-11-06 14:36:11 -0600 |
|---|---|---|
| committer | Eric Blake <eblake@redhat.com> | 2020-11-16 14:51:12 -0600 |
| commit | c0b21f2e221e5edafb400e8acfa04db3ad5bf956 (patch) | |
| tree | 2bd553dc90ecbe23a1b188388b3c39ef1bc11764 /tests/qemu-iotests/nbd-fault-injector.py | |
| parent | cb5ed407a1ddadf788fd373fed41c87c9e81e5b0 (diff) | |
| download | focaccia-qemu-c0b21f2e221e5edafb400e8acfa04db3ad5bf956.tar.gz focaccia-qemu-c0b21f2e221e5edafb400e8acfa04db3ad5bf956.zip | |
nbd: Silence Coverity false positive
Coverity noticed (CID 1436125) that we check the return value of nbd_extent_array_add in most places, but not at the end of bitmap_to_extents(). The return value exists to break loops before a future iteration, so there is nothing to check if we are already done iterating. Adding a cast to void, plus a comment why, pacifies Coverity. Signed-off-by: Eric Blake <eblake@redhat.com> Message-Id: <20201111163510.713855-1-eblake@redhat.com> [eblake: Prefer cast to void over odd && usage] Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'tests/qemu-iotests/nbd-fault-injector.py')
0 files changed, 0 insertions, 0 deletions