qemu/hw/i2c
Cédric Le Goater ce6c368d96 aspeed/i2c: Clean up local variable shadowing
Remove superfluous local 'data' variable and use the one define at the
top of the routine. This fixes :

  ../hw/i2c/aspeed_i2c.c: In function ‘aspeed_i2c_bus_recv’:
  ../hw/i2c/aspeed_i2c.c:315:17: warning: declaration of ‘data’ shadows a previous local [-Wshadow=compatible-local]
    315 |         uint8_t data;
        |                 ^~~~
  ../hw/i2c/aspeed_i2c.c:288:13: note: shadowed declaration is here
    288 |     uint8_t data;
        |             ^~~~

Signed-off-by: Cédric Le Goater <clg@kaod.org>
Message-ID: <20230922155924.1172019-2-clg@kaod.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Joel Stanley <joel@jms.id.au>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
2023-09-29 10:07:19 +02:00
..
allwinner-i2c.c hw/i2c/allwinner-i2c: Fix subclassing of TYPE_AW_I2C_SUN6I 2023-04-11 14:13:29 +01:00
arm_sbcon_i2c.c hw/i2c/versatile_i2c: Rename versatile_i2c -> arm_sbcon_i2c 2023-01-23 13:32:38 +00:00
aspeed_i2c.c aspeed/i2c: Clean up local variable shadowing 2023-09-29 10:07:19 +02:00
bitbang_i2c.c hw/i2c: Fix bitbang_i2c_data trace event 2023-08-07 13:52:59 +03:00
core.c hw/i2c: only schedule pending master when bus is idle 2023-03-02 13:57:50 +01:00
exynos4210_i2c.c
i2c_mux_pca954x.c hw/i2c: Enable an id for the pca954x devices 2023-06-13 11:28:58 +02:00
imx_i2c.c
Kconfig hw/i2c/versatile_i2c: Rename versatile_i2c -> arm_sbcon_i2c 2023-01-23 13:32:38 +00:00
meson.build meson: Replace softmmu_ss -> system_ss 2023-06-20 10:01:30 +02:00
microbit_i2c.c
mpc_i2c.c bulk: Rename TARGET_FMT_plx -> HWADDR_FMT_plx 2023-01-18 11:14:34 +01:00
npcm7xx_smbus.c
omap_i2c.c
pm_smbus.c pm_smbus: rename variable to avoid shadowing 2023-09-26 16:39:20 +02:00
pmbus_device.c hw/i2c: spelling fixes 2023-08-31 19:47:43 +02:00
ppc4xx_i2c.c
smbus_eeprom.c
smbus_ich9.c hw: Move ich9.h to southbridge/ 2023-02-27 22:29:01 +01:00
smbus_master.c
smbus_slave.c hw/i2c: spelling fixes 2023-08-31 19:47:43 +02:00
trace-events hw/i2c: Fix bitbang_i2c_data trace event 2023-08-07 13:52:59 +03:00
trace.h