Aways a false condition
Description of problem
There is always a false condition in the function virStorageBackendDeviceIsEmpty
:
https://gitlab.com/libvirt/libvirt/-/blob/master/src/storage/storage_util.c#L3358
The result of the function virStorageBackendPARTEDValidLabel
is always either 0 or -1. That's why the condition ret == -2 is false
. The code inside will never be executed.
Found by Linux Verification Center (portal.linuxtesting.ru) with SVACE.
Author A. Voronin.
Edited by Artemii Voronin