diff options
author | Alistair Francis <alistair23@gmail.com> | 2023-09-25 14:30:20 +1000 |
---|---|---|
committer | Markus Armbruster <armbru@redhat.com> | 2023-09-29 10:07:20 +0200 |
commit | 010f5557ab1d5d14c3ffc023387289c68b889cc9 (patch) | |
tree | 518b0277de39fe4dd364a0a82b7b0688a5855349 /io/channel-buffer.c | |
parent | e161785c05c8a96962a0ea87a3abefe158d8b035 (diff) | |
download | qemu-010f5557ab1d5d14c3ffc023387289c68b889cc9.zip qemu-010f5557ab1d5d14c3ffc023387289c68b889cc9.tar.gz qemu-010f5557ab1d5d14c3ffc023387289c68b889cc9.tar.bz2 |
hw/riscv: opentitan: Fixup local variables shadowing
Local variables shadowing other local variables or parameters make the
code needlessly hard to understand. Bugs love to hide in such code.
Evidence: "[PATCH v3 1/7] migration/rdma: Fix save_page method to fail
on polling error".
This patch removes the local variable shadowing. Tested by adding:
--extra-cflags='-Wshadow=local -Wno-error=shadow=local -Wno-error=shadow=compatible-local'
To configure
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Message-ID: <20230925043023.71448-2-alistair.francis@wdc.com>
Reviewed-by: Daniel Henrique Barboza <dbarboza@ventanamicro.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Diffstat (limited to 'io/channel-buffer.c')
0 files changed, 0 insertions, 0 deletions