summaryrefslogtreecommitdiff
path: root/src/southbridge/intel/i82801gx/ide.c
diff options
context:
space:
mode:
authorElyes Haouas <ehaouas@noos.fr>2024-08-10 09:52:57 +0200
committerMartin L Roth <gaumless@gmail.com>2024-10-14 15:31:08 +0000
commitbede28b17df3aa3af4adc9c2396abd4070785cda (patch)
treef1e5423adfb91dfcb3be810902ad8896757c7fb7 /src/southbridge/intel/i82801gx/ide.c
parent55a5041fbfcda747db6b24c4c6a292ecb26cac50 (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/southbridge/intel/i82801gx/ide.c')
-rw-r--r--src/southbridge/intel/i82801gx/ide.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/southbridge/intel/i82801gx/ide.c b/src/southbridge/intel/i82801gx/ide.c
index 71fc738632..05f1e0a04f 100644
--- a/src/southbridge/intel/i82801gx/ide.c
+++ b/src/southbridge/intel/i82801gx/ide.c
@@ -18,7 +18,7 @@ static void ide_init(struct device *dev)
const struct southbridge_intel_i82801gx_config *config = dev->chip_info;
printk(BIOS_DEBUG, "i82801gx_ide: initializing...");
- if (config == NULL) {
+ if (config == nullptr) {
printk(BIOS_ERR, "\ni82801gx_ide: Not mentioned in devicetree.cb!\n");
// Trying to set somewhat safe defaults instead of bailing out.
enable_primary = enable_secondary = 1;