hw/ide/ahci: Remove SysbusAHCIState::num_ports field
commitb0bccc6a9af57d6adb73041e94d7cd5b1554fc0b
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Tue, 13 Feb 2024 05:26:06 +0000 (13 06:26 +0100)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Thu, 15 Feb 2024 15:58:46 +0000 (15 16:58 +0100)
treeb12406bc4d67ffe3c46f00fbe7f68c6b229ba7c0
parentbe02150167044e34d3c5ec5d9e84e8470e9a8166
hw/ide/ahci: Remove SysbusAHCIState::num_ports field

No need to duplicate AHCIState::ports, directly access it.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20240213081201.78951-9-philmd@linaro.org>
hw/ide/ahci.c
include/hw/ide/ahci.h