hw/ide/ahci: Inline ahci_get_num_ports()
commite6097f186416df368a7f87a37f0a7fd25de587ba
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Tue, 13 Feb 2024 07:31:45 +0000 (13 08:31 +0100)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Thu, 15 Feb 2024 15:58:46 +0000 (15 16:58 +0100)
tree549924fa2ed0c04c1db0084c754a873b23cf880d
parent41c05b41e3b3c5b6b167c315d0f25eb355dcc326
hw/ide/ahci: Inline ahci_get_num_ports()

Introduce the 'ich9' variable and inline ahci_get_num_ports().

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-5-philmd@linaro.org>
hw/i386/pc_q35.c
hw/ide/ahci.c
hw/mips/boston.c
include/hw/ide/ahci.h