]> git.proxmox.com Git - mirror_qemu.git/commit - hw/arm/fsl-imx6.c
Remove checks on MAX_SERIAL_PORTS that are just bounds checks
authorPeter Maydell <peter.maydell@linaro.org>
Fri, 20 Apr 2018 14:52:44 +0000 (15:52 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 26 Apr 2018 12:57:00 +0000 (13:57 +0100)
commitfc38a1120c2fabb76546ef8980e6d18b5fb7e843
tree3b58b52e56a00a7ac26ef416b88dd0a3ba8bf417
parent9bca0edb282de0007a4f068d9d20f3e3c3aadef7
Remove checks on MAX_SERIAL_PORTS that are just bounds checks

Remove checks on MAX_SERIAL_PORTS that were just checking whether
they were within bounds for the serial_hds[] array and falling
back to NULL if not. This isn't needed with the serial_hd()
function, which returns NULL for all indexes beyond what the
user set up.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-id: 20180420145249.32435-9-peter.maydell@linaro.org
hw/arm/fsl-imx25.c
hw/arm/fsl-imx31.c
hw/arm/fsl-imx6.c
hw/arm/fsl-imx7.c
hw/arm/mps2-tz.c
hw/arm/mps2.c
hw/arm/stm32f205_soc.c