diff options
| author | Janosch Frank | 2022-03-30 14:35:58 +0200 |
|---|---|---|
| committer | Marc-André Lureau | 2022-04-22 11:36:03 +0200 |
| commit | 344107e07bd81546474a54ab83800158ca953059 (patch) | |
| tree | ad583d4f2e2242f1d902c9dcf2a5041c1e7dc73e /include | |
| parent | dump: Introduce shdr_num to decrease complexity (diff) | |
| download | qemu-344107e07bd81546474a54ab83800158ca953059.tar.gz qemu-344107e07bd81546474a54ab83800158ca953059.tar.xz qemu-344107e07bd81546474a54ab83800158ca953059.zip | |
dump: Remove the section if when calculating the memory offset
When s->shdr_num is 0 we'll add 0 bytes of section headers which is
equivalent to not adding section headers but with the multiplication
we can remove a if/else.
Signed-off-by: Janosch Frank <frankja@linux.ibm.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20220330123603.107120-5-frankja@linux.ibm.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
