Re: [PATCH v2 02/13] contrib/elf2dmp: Assume error by default

2024-03-05 Thread Peter Maydell
On Tue, 5 Mar 2024 at 07:36, Akihiko Odaki wrote: > > A common construct in contrib/elf2dmp is to set "err" flag and goto > in error paths. In such a construct, there is only one successful path > while there are several error paths, so it will be more simpler to > initialize "err" flag set, and c

[PATCH v2 02/13] contrib/elf2dmp: Assume error by default

2024-03-04 Thread Akihiko Odaki
A common construct in contrib/elf2dmp is to set "err" flag and goto in error paths. In such a construct, there is only one successful path while there are several error paths, so it will be more simpler to initialize "err" flag set, and clear it in the successful path. Signed-off-by: Akihiko Odaki