Re: [PATCH 10/11] migration: Remove unnecessary usage of local Error

2024-01-02 Thread Fabiano Rosas
Avihai Horon writes: > According to Error API, usage of ERRP_GUARD() or a local Error instead > of errp is needed if errp is passed to void functions, where it is later > dereferenced to see if an error occurred. > > There are several places in migration.c that use local Error although it > is no

[PATCH 10/11] migration: Remove unnecessary usage of local Error

2023-12-31 Thread Avihai Horon
According to Error API, usage of ERRP_GUARD() or a local Error instead of errp is needed if errp is passed to void functions, where it is later dereferenced to see if an error occurred. There are several places in migration.c that use local Error although it is not needed. Change these places to u