hw/ide/ahci: Convert AHCIState::ports to unsigned
commit44c11b2e69d845e487d0184079899ef15ab626a5
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Tue, 13 Feb 2024 05:29:00 +0000 (13 06:29 +0100)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Thu, 15 Feb 2024 15:58:46 +0000 (15 16:58 +0100)
tree1936ac2be301f1399ea3e0df679a64eb8d95833b
parente2f8d28005acdfa4e7edd6c842c6e9527a901ba5
hw/ide/ahci: Convert AHCIState::ports to unsigned

AHCIState::ports should be unsigned. Besides, we never
check it for negative value. It is unlikely it was ever
used with more than INT32_MAX ports, so it is safe to
convert it to unsigned.

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