aboutsummaryrefslogtreecommitdiff
path: root/hw/avr
diff options
context:
space:
mode:
authorCédric Le Goater <clg@kaod.org>2023-09-22 17:59:21 +0200
committerMarkus Armbruster <armbru@redhat.com>2023-09-29 10:07:19 +0200
commitce6c368d96ed88c2c8505c825b771e8632e84a88 (patch)
tree2cce7bb81c0f3e3c2af4aaed72a1236ad07fa045 /hw/avr
parent84abccdd39d6c011971a2a41e7b64f7084e28da8 (diff)
downloadqemu-ce6c368d96ed88c2c8505c825b771e8632e84a88.zip
qemu-ce6c368d96ed88c2c8505c825b771e8632e84a88.tar.gz
qemu-ce6c368d96ed88c2c8505c825b771e8632e84a88.tar.bz2
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>
Diffstat (limited to 'hw/avr')
0 files changed, 0 insertions, 0 deletions