aboutsummaryrefslogtreecommitdiff
path: root/hw/misc/sifive_u_prci.c
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2023-03-30 15:11:09 +0200
committerMichael S. Tsirkin <mst@redhat.com>2023-04-24 22:56:55 -0400
commit094e29a27184430d6d82ad4bea1d3311fc48297e (patch)
tree4827b2fc346cb078a22272e084f9990b96aa305c /hw/misc/sifive_u_prci.c
parent1af507756bae775028c27d30e602e2b9c72cd074 (diff)
downloadqemu-094e29a27184430d6d82ad4bea1d3311fc48297e.zip
qemu-094e29a27184430d6d82ad4bea1d3311fc48297e.tar.gz
qemu-094e29a27184430d6d82ad4bea1d3311fc48297e.tar.bz2
tests: bios-tables-test: replace memset with initializer
Coverity complains that memset() writes over a const field. Use an initializer instead, so that the const field is left to zero. Tests that have to write the const field already use an initializer for the whole struct, here I am choosing the smallest possible patch (which is not that small already). Cc: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Message-Id: <20230330131109.47856-1-pbonzini@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Reviewed-by: Thomas Huth <thuth@redhat.com>
Diffstat (limited to 'hw/misc/sifive_u_prci.c')
0 files changed, 0 insertions, 0 deletions