Skip to content
Snippets Groups Projects
Commit 15675f23 authored by Cédric Le Goater's avatar Cédric Le Goater Committed by Markus Armbruster
Browse files

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: default avatarCédric Le Goater <clg@kaod.org>
Message-ID: <20230918145850.241074-8-clg@kaod.org>
Reviewed-by: default avatarHarsh Prateek Bora <harshpb@linux.ibm.com>
Signed-off-by: default avatarMarkus Armbruster <armbru@redhat.com>
parent bea3d6e7
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment