[PATCH 01/17] Drop needless typecast to virStorageType enum

Boris Fiuczynski fiuczy at linux.ibm.com
Tue May 24 11:50:16 UTC 2022


On 5/23/22 3:08 PM, Michal Privoznik wrote:
> There are three places (two in domain_conf.c and one in
> qemu_migration.c) where a virStorageSource->type is typecasted to
> virStorageType (for the purpose of catching missing enum member
> in a switch() statement at compile time). This is needless,
> because as of v8.2.0-rc1~120 the struct member is of proper type.
> 
> Signed-off-by: Michal Privoznik<mprivozn at redhat.com>
> ---

Reviewed-by: Boris Fiuczynski <fiuczy at linux.ibm.com>

-- 
Mit freundlichen Grüßen/Kind regards
    Boris Fiuczynski

IBM Deutschland Research & Development GmbH
Vorsitzender des Aufsichtsrats: Gregor Pillen
Geschäftsführung: David Faller
Sitz der Gesellschaft: Böblingen
Registergericht: Amtsgericht Stuttgart, HRB 243294



More information about the libvir-list mailing list