spapr/pci: Clean up local variable shadowing in spapr_phb_realize()
commit15675f2318142f8fbfd17b161604fb4f5e9f420e
authorCédric Le Goater <clg@kaod.org>
Mon, 18 Sep 2023 14:58:49 +0000 (18 16:58 +0200)
committerMarkus Armbruster <armbru@redhat.com>
Fri, 29 Sep 2023 08:07:18 +0000 (29 10:07 +0200)
tree69e22b48b0e985c032b3bdc4a5f24b299f2539ac
parentbea3d6e745fe34ca51780b623b10675ed1975b58
spapr/pci: Clean up local variable shadowing in spapr_phb_realize()

Rename SysBusDevice variable to avoid this warning :

  ../hw/ppc/spapr_pci.c: In function ‘spapr_phb_realize’:
  ../hw/ppc/spapr_pci.c:1872:24: warning: declaration of ‘s’ shadows a previous local [-Wshadow=local]
   1872 |         SpaprPhbState *s;
        |                        ^
  ../hw/ppc/spapr_pci.c:1829:19: note: shadowed declaration is here
   1829 |     SysBusDevice *s = SYS_BUS_DEVICE(dev);
        |                   ^

Signed-off-by: Cédric Le Goater <clg@kaod.org>
Message-ID: <20230918145850.241074-8-clg@kaod.org>
Reviewed-by: Harsh Prateek Bora <harshpb@linux.ibm.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
hw/ppc/spapr_pci.c