spapr: Clean up local variable shadowing in spapr_get_fw_dev_path()
commit01a78f23cbaf15359a051b45c1df05269d5aa4d5
authorCédric Le Goater <clg@kaod.org>
Mon, 18 Sep 2023 14:58:47 +0000 (18 16:58 +0200)
committerMarkus Armbruster <armbru@redhat.com>
Fri, 29 Sep 2023 08:07:18 +0000 (29 10:07 +0200)
treeeec2f922fb3467e407bb5932268d1b7b5959bb0f
parentc0b648d9e9747f44fc3c4503b3a06741b0d6e4a8
spapr: Clean up local variable shadowing in spapr_get_fw_dev_path()

Rename PCIDevice variable to avoid this warning :

  ../hw/ppc/spapr.c: In function ‘spapr_get_fw_dev_path’:
  ../hw/ppc/spapr.c:3217:20: warning: declaration of ‘pcidev’ shadows a previous local [-Wshadow=compatible-local]
   3217 |         PCIDevice *pcidev = CAST(PCIDevice, dev, TYPE_PCI_DEVICE);
        |                    ^~~~~~
  ../hw/ppc/spapr.c:3147:16: note: shadowed declaration is here
   3147 |     PCIDevice *pcidev = CAST(PCIDevice, dev, TYPE_PCI_DEVICE);
        |                ^~~~~~

Signed-off-by: Cédric Le Goater <clg@kaod.org>
Message-ID: <20230918145850.241074-6-clg@kaod.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
hw/ppc/spapr.c