]> Git Repo - qemu.git/commit
Remove checks on MAX_SERIAL_PORTS that are just bounds checks
authorPeter Maydell <[email protected]>
Fri, 20 Apr 2018 14:52:44 +0000 (15:52 +0100)
committerPeter Maydell <[email protected]>
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 <[email protected]>
Reviewed-by: Thomas Huth <[email protected]>
Reviewed-by: Philippe Mathieu-Daudé <[email protected]>
Message-id: 20180420145249[email protected]
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
This page took 0.027049 seconds and 4 git commands to generate.