aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>2024-01-28 11:24:21 +0100
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>2024-02-02 19:55:29 +0100
commit85e490b22e89890c99660a13131aaeae52b249dd (patch)
tree2aeab5166619f95928cbf979484752cb9e02540a
parent050a9b981d6a835133521b599be3ae189ce70f41 (diff)
downloadu-boot-85e490b22e89890c99660a13131aaeae52b249dd.zip
u-boot-85e490b22e89890c99660a13131aaeae52b249dd.tar.gz
u-boot-85e490b22e89890c99660a13131aaeae52b249dd.tar.bz2
lib: smbios_entr() use logical or for booleans
As a matter of programming style use logical or to combine two boolean results. Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
-rw-r--r--lib/smbios-parser.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/smbios-parser.c b/lib/smbios-parser.c
index f48d743..0d1ac78 100644
--- a/lib/smbios-parser.c
+++ b/lib/smbios-parser.c
@@ -15,7 +15,7 @@ const struct smbios_entry *smbios_entry(u64 address, u32 size)
{
const struct smbios_entry *entry = (struct smbios_entry *)(uintptr_t)address;
- if (!address | !size)
+ if (!address || !size)
return NULL;
if (memcmp(entry->anchor, "_SM_", 4))