summary refs log tree commit diff stats
path: root/scripts/qapi
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2024-07-23 14:10:28 +0100
committerPeter Maydell <peter.maydell@linaro.org>2024-07-29 16:55:59 +0100
commit4b648238b8dd9870280b60ff32bf7fe2fe82607f (patch)
treede5d7f31fe9725f9e451ae6e700cac0e7e344bae /scripts/qapi
parent32f1c201eedf992c2ac8033d8af95f1ff1758a4d (diff)
downloadfocaccia-qemu-4b648238b8dd9870280b60ff32bf7fe2fe82607f.tar.gz
focaccia-qemu-4b648238b8dd9870280b60ff32bf7fe2fe82607f.zip
hw/misc/bcm2835_property: Restrict scope of start_num, number, otp_row
In the long function bcm2835_property_mbox_push(), the variables
start_num, number and otp_row are used only in the four cases which
access OTP data, and their uses don't overlap with each other.

Make these variables have scope restricted to the cases where they're
used, so it's easier to read each individual case without having to
cross-refer up to the variable declaration at the top of the function
and check whether the variable is also used later in the loop.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-id: 20240723131029.1159908-4-peter.maydell@linaro.org
Diffstat (limited to 'scripts/qapi')
0 files changed, 0 insertions, 0 deletions