hw/pci-host/pam: Replace magic number by PAM_REGIONS_COUNT definition
commitf6a3c86ebd39aaedf1ebf89629ec91b5d44b670d
authorPhilippe Mathieu-Daudé <philmd@redhat.com>
Wed, 2 Dec 2020 13:20:38 +0000 (2 14:20 +0100)
committerLaurent Vivier <laurent@vivier.eu>
Sun, 13 Dec 2020 16:07:05 +0000 (13 17:07 +0100)
tree42943407aac4211bba2b77122f460edc30a0794d
parent01d152c0bfabadc6c93a39e465eb2f66f3f11527
hw/pci-host/pam: Replace magic number by PAM_REGIONS_COUNT definition

While this change helps triskaidekaphobic developers, it
is a good practice to avoid magic values and using constant
definitions instead.

Introduce the PAM_REGIONS_COUNT and use it. No logical change.

Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Julia Suvorova <jusual@redhat.com>
Message-Id: <20201202132038.1276404-1-philmd@redhat.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
hw/pci-host/pam.c
hw/pci-host/q35.c
include/hw/pci-host/i440fx.h
include/hw/pci-host/pam.h
include/hw/pci-host/q35.h