summaryrefslogtreecommitdiff
path: root/src/northbridge/intel/x4x/northbridge.c
diff options
context:
space:
mode:
authorElyes Haouas <ehaouas@noos.fr>2022-09-13 09:55:49 +0200
committerFelix Held <felix-coreboot@felixheld.de>2022-09-14 12:01:24 +0000
commit5e6b0f0cac4ba5cde6114325ea69ec0e98c7e08f (patch)
tree06433b2873415812ac1fb28c51819cd89e4caa74 /src/northbridge/intel/x4x/northbridge.c
parent1fac2e20b8161e1dc93086b4c5498548827f1604 (diff)
nb/intel: Use "if (!ptr)" in preference to "if (ptr == NULL)"
Signed-off-by: Elyes Haouas <ehaouas@noos.fr> Change-Id: I6d0d945011fa046b974c6f4554cb9fb15e523afb Reviewed-on: https://review.coreboot.org/c/coreboot/+/67578 Reviewed-by: Angel Pons <th3fanbus@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/northbridge/intel/x4x/northbridge.c')
-rw-r--r--src/northbridge/intel/x4x/northbridge.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/northbridge/intel/x4x/northbridge.c b/src/northbridge/intel/x4x/northbridge.c
index 015e0ac658..cdf43c95e6 100644
--- a/src/northbridge/intel/x4x/northbridge.c
+++ b/src/northbridge/intel/x4x/northbridge.c
@@ -138,7 +138,7 @@ void northbridge_write_smram(u8 smram)
{
struct device *dev = pcidev_on_root(0, 0);
- if (dev == NULL)
+ if (!dev)
die("could not find pci 00:00.0!\n");
pci_write_config8(dev, D0F0_SMRAM, smram);