hw/arm/smmuv3.c: Avoid shadowing variable
commit9e2135ee93ad84119642787e3fb8264b6d1c7ef5
authorPeter Maydell <peter.maydell@linaro.org>
Fri, 22 Sep 2023 15:29:43 +0000 (22 16:29 +0100)
committerMarkus Armbruster <armbru@redhat.com>
Fri, 29 Sep 2023 08:07:19 +0000 (29 10:07 +0200)
tree53c9785842de77265e86df0f45a47cb2a4b91352
parentb2e7e2048bbe7a82b921d9ca71da9aec1668fcfe
hw/arm/smmuv3.c: Avoid shadowing variable

Avoid shadowing a variable in smmuv3_notify_iova():

../../hw/arm/smmuv3.c: In function ‘smmuv3_notify_iova’:
../../hw/arm/smmuv3.c:1043:23: warning: declaration of ‘event’ shadows a previous local [-Wshadow=local]
 1043 |         SMMUEventInfo event = {.inval_ste_allowed = true};
      |                       ^~~~~
../../hw/arm/smmuv3.c:1038:19: note: shadowed declaration is here
 1038 |     IOMMUTLBEvent event;
      |                   ^~~~~

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Message-ID: <20230922152944.3583438-4-peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Eric Auger <eric.auger@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
hw/arm/smmuv3.c