diff options
| author | Peter Maydell <peter.maydell@linaro.org> | 2019-03-12 12:29:53 +0000 |
|---|---|---|
| committer | Peter Maydell <peter.maydell@linaro.org> | 2019-03-12 12:29:53 +0000 |
| commit | a6d3c238034c8a90a0a2cee7814741ff1384e66f (patch) | |
| tree | fd0e5eba3420d626bf293af6a00d64701ad12987 /thunk.c | |
| parent | eda1df0345f5a1e337e30367124dcb0e802bdfde (diff) | |
| parent | 3b777a79c1cfa40f39f96220bc733eccd7392c9c (diff) | |
| download | focaccia-qemu-a6d3c238034c8a90a0a2cee7814741ff1384e66f.tar.gz focaccia-qemu-a6d3c238034c8a90a0a2cee7814741ff1384e66f.zip | |
Merge remote-tracking branch 'remotes/vivier2/tags/trivial-branch-pull-request' into staging
fw_cfg and thunk code clean up # gpg: Signature made Mon 11 Mar 2019 19:11:03 GMT # gpg: using RSA key F30C38BD3F2FBE3C # gpg: Good signature from "Laurent Vivier <lvivier@redhat.com>" [full] # gpg: aka "Laurent Vivier <laurent@vivier.eu>" [full] # gpg: aka "Laurent Vivier (Red Hat) <lvivier@redhat.com>" [full] # Primary key fingerprint: CD2F 75DD C8E3 A4DC 2E4F 5173 F30C 38BD 3F2F BE3C * remotes/vivier2/tags/trivial-branch-pull-request: hw/nvram/fw_cfg: Use the ldst API hw/arm/virt: Remove null-check in virt_build_smbios() hw/i386: Remove unused include hw/nvram/fw_cfg: Remove the unnecessary boot_splash_filedata_size thunk: improve readability of allocation loop Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'thunk.c')
| -rw-r--r-- | thunk.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/thunk.c b/thunk.c index 17f3d320bb..7f31cffe09 100644 --- a/thunk.c +++ b/thunk.c @@ -86,7 +86,7 @@ void thunk_register_struct(int id, const char *name, const argtype *types) #endif /* now we can alloc the data */ - for(i = 0;i < 2; i++) { + for (i = 0; i < ARRAY_SIZE(se->field_offsets); i++) { offset = 0; max_align = 1; se->field_offsets[i] = g_new(int, nb_fields); |