qemu-e2k/hw/gpio
Philippe Mathieu-Daudé 03a3c6f16f hw/gpio/max7310: Remove impossible check
The max7310_gpio_set() handler is static and only used by
qdev_init_gpio_in, initialized with 8 IRQs. The 'line'
argument can not be out of the [0-8[ range.
Replace the dead code by an assertion.

Suggested-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20200910072325.439344-2-f4bug@amsat.org>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
2020-09-16 10:43:48 +02:00
..
Kconfig hw/riscv: Move sifive_gpio model to hw/gpio 2020-09-09 15:54:19 -07:00
aspeed_gpio.c error: Eliminate error_propagate() with Coccinelle, part 1 2020-07-10 15:18:08 +02:00
bcm2835_gpio.c qom: Don't handle impossible object_property_get_link() failure 2020-07-10 15:18:08 +02:00
gpio_key.c Use DECLARE_*CHECKER* macros 2020-09-09 09:27:09 -04:00
imx_gpio.c qdev: set properties with device_class_set_props() 2020-01-24 20:59:15 +01:00
max7310.c hw/gpio/max7310: Remove impossible check 2020-09-16 10:43:48 +02:00
meson.build hw/riscv: Move sifive_gpio model to hw/gpio 2020-09-09 15:54:19 -07:00
mpc8xxx.c Use DECLARE_*CHECKER* macros 2020-09-09 09:27:09 -04:00
nrf51_gpio.c Include migration/vmstate.h less 2019-08-16 13:31:52 +02:00
omap_gpio.c hw/gpio/omap_gpio: Replace fprintf() by qemu_log_mask(GUEST_ERROR) 2020-09-09 15:27:48 +02:00
pl061.c Use DECLARE_*CHECKER* macros 2020-09-09 09:27:09 -04:00
puv3_gpio.c Use DECLARE_*CHECKER* macros 2020-09-09 09:27:09 -04:00
sifive_gpio.c hw/riscv: Move sifive_gpio model to hw/gpio 2020-09-09 15:54:19 -07:00
trace-events hw/riscv: Move sifive_gpio model to hw/gpio 2020-09-09 15:54:19 -07:00
trace.h trace: switch position of headers to what Meson requires 2020-08-21 06:18:24 -04:00
zaurus.c Use DECLARE_*CHECKER* macros 2020-09-09 09:27:09 -04:00