aboutsummaryrefslogtreecommitdiff
path: root/hw/remote
diff options
context:
space:
mode:
authorAkihiko Odaki <akihiko.odaki@daynix.com>2024-03-07 19:20:45 +0900
committerPeter Maydell <peter.maydell@linaro.org>2024-03-11 17:06:06 +0000
commita4e58de14678503fd773e7920359028de77711f9 (patch)
tree26d031ee77e688a8468f37c20d50d4022e33ad23 /hw/remote
parentb48139d0d90e9a551f630760fa57732cfeee759f (diff)
downloadqemu-a4e58de14678503fd773e7920359028de77711f9.zip
qemu-a4e58de14678503fd773e7920359028de77711f9.tar.gz
qemu-a4e58de14678503fd773e7920359028de77711f9.tar.bz2
contrib/elf2dmp: Assume error by default
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 <akihiko.odaki@daynix.com> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Tested-by: Viktor Prutyanov <viktor.prutyanov@phystech.edu> Message-id: 20240307-elf2dmp-v4-2-4f324ad4d99d@daynix.com Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'hw/remote')
0 files changed, 0 insertions, 0 deletions