aboutsummaryrefslogtreecommitdiff
path: root/module-common.c
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 /module-common.c
parent32f1c201eedf992c2ac8033d8af95f1ff1758a4d (diff)
downloadqemu-4b648238b8dd9870280b60ff32bf7fe2fe82607f.zip
qemu-4b648238b8dd9870280b60ff32bf7fe2fe82607f.tar.gz
qemu-4b648238b8dd9870280b60ff32bf7fe2fe82607f.tar.bz2
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 'module-common.c')
0 files changed, 0 insertions, 0 deletions