diff options
author | Elyes Haouas <ehaouas@noos.fr> | 2024-08-10 09:52:57 +0200 |
---|---|---|
committer | Martin L Roth <gaumless@gmail.com> | 2024-10-14 15:31:08 +0000 |
commit | bede28b17df3aa3af4adc9c2396abd4070785cda (patch) | |
tree | f1e5423adfb91dfcb3be810902ad8896757c7fb7 /src/mainboard/ibase/mb899 | |
parent | 55a5041fbfcda747db6b24c4c6a292ecb26cac50 (diff) |
i945: Use nullptr instead of NULL
nullptr was introduced in C11 spec and gcc 4.7.
https://en.cppreference.com/w/cpp/language/nullptr
https://stackoverflow.com/questions/16256586/how-to-enable-c11-on-later-versions-of-gcc
coreboot switched to GCC 4.7.2 on October 25, 2021, prior to coreboot v4.1.
https://review.coreboot.org/c/coreboot/+/1609
GCC-13 implemented nullptr constant: https://www.open-std.org/jtc1/sc22/wg14/www/docs/n3042.htm
So use it insted of NULL macro.
Change-Id: I7d47e692a33d739345a81f589d4329a31beeb8c5
Signed-off-by: Elyes Haouas <ehaouas@noos.fr>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/83860
Reviewed-by: Martin L Roth <gaumless@gmail.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/mainboard/ibase/mb899')
-rw-r--r-- | src/mainboard/ibase/mb899/mptable.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mainboard/ibase/mb899/mptable.c b/src/mainboard/ibase/mb899/mptable.c index bb4379685e..e34c7237ac 100644 --- a/src/mainboard/ibase/mb899/mptable.c +++ b/src/mainboard/ibase/mb899/mptable.c @@ -8,7 +8,7 @@ static void *smp_write_config_table(void *v) { struct mp_config_table *mc; - struct device *riser = NULL, *firewire = NULL; + struct device *riser = nullptr, *firewire = nullptr; int firewire_bus = 0, riser_bus = 0, isa_bus; mc = (void *)(((char *)v) + SMP_FLOATING_TABLE_LEN); @@ -34,7 +34,7 @@ static void *smp_write_config_table(void *v) printk(BIOS_SPEW, "Riser bus is %x\n", riser_bus); } - mptable_write_buses(mc, NULL, &isa_bus); + mptable_write_buses(mc, nullptr, &isa_bus); /* I/O APICs: APIC ID Version State Address */ u8 ioapic_id = smp_write_ioapic_from_hw(mc, IO_APIC_ADDR); |