From 10942bfb21f7278fde225ce12dc6c99c29920917 Mon Sep 17 00:00:00 2001 From: Felix Held Date: Mon, 5 Feb 2024 17:24:49 +0100 Subject: sb/intel/i82371eb/isa: make IOAPIC ID const Since the local IOAPIC ID variable is initialized as 2 and never changed afterwards, so make it const to make this more obvious. Signed-off-by: Felix Held Change-Id: I1f19cc43b44a938758a43346f4fa75f8ed39ddea Reviewed-on: https://review.coreboot.org/c/coreboot/+/80349 Reviewed-by: Nico Huber Tested-by: build bot (Jenkins) Reviewed-by: Arthur Heymans --- src/southbridge/intel/i82371eb/isa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/southbridge/intel/i82371eb/isa.c b/src/southbridge/intel/i82371eb/isa.c index 7d86e8a7ab..9d03de07d7 100644 --- a/src/southbridge/intel/i82371eb/isa.c +++ b/src/southbridge/intel/i82371eb/isa.c @@ -53,7 +53,7 @@ static void isa_init(struct device *dev) */ if (CONFIG(IOAPIC)) { u16 reg16; - u8 ioapic_id = 2; + const u8 ioapic_id = 2; /* Enable IOAPIC. */ reg16 = pci_read_config16(dev, XBCS); -- cgit v1.2.3