]> git.proxmox.com Git - mirror_qemu.git/commit
spapr/drc: Clean up local variable shadowing in rtas_ibm_configure_connector()
authorCédric Le Goater <clg@kaod.org>
Mon, 18 Sep 2023 14:58:48 +0000 (16:58 +0200)
committerMarkus Armbruster <armbru@redhat.com>
Fri, 29 Sep 2023 08:07:18 +0000 (10:07 +0200)
commitbea3d6e745fe34ca51780b623b10675ed1975b58
tree1d65f3471f6ee744ffd7612c2db9e0a32f6f83a2
parent01a78f23cbaf15359a051b45c1df05269d5aa4d5
spapr/drc: Clean up local variable shadowing in rtas_ibm_configure_connector()

Remove extra 'drc_index' variable to avoid this warning :

  ../hw/ppc/spapr_drc.c: In function ‘rtas_ibm_configure_connector’:
  ../hw/ppc/spapr_drc.c:1240:26: warning: declaration of ‘drc_index’ shadows a previous local [-Wshadow=compatible-local]
   1240 |                 uint32_t drc_index = spapr_drc_index(drc);
        |                          ^~~~~~~~~
  ../hw/ppc/spapr_drc.c:1155:14: note: shadowed declaration is here
   1155 |     uint32_t drc_index;
        |              ^~~~~~~~~

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