hw/gpio/aspeed_gpio: Remove dead assignment
commit6ae1a5a37711c80166b92019174877fc6f73030a
authorPhilippe Mathieu-Daudé <philmd@redhat.com>
Wed, 22 Apr 2020 13:31:50 +0000 (22 15:31 +0200)
committerLaurent Vivier <laurent@vivier.eu>
Mon, 4 May 2020 12:43:24 +0000 (4 14:43 +0200)
tree0011106654100a4a7fe74d92652755bbee9947d3
parent2c8ed55f0f615ea825cb30e80e74a07d6945bcf9
hw/gpio/aspeed_gpio: Remove dead assignment

Fix warning reported by Clang static code analyzer:

  hw/gpio/aspeed_gpio.c:717:18: warning: Value stored to 'g_idx' during its initialization is never read
      int set_idx, g_idx = *group_idx;
                   ^~~~~   ~~~~~~~~~~

Reported-by: Clang Static Analyzer
Reviewed-by: Cédric Le Goater <clg@kaod.org>
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20200422133152.16770-8-philmd@redhat.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
hw/gpio/aspeed_gpio.c