mirror of
https://github.com/AsahiLinux/u-boot
synced 2025-02-16 05:58:49 +00:00
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>
This commit is contained in:
parent
050a9b981d
commit
85e490b22e
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
const struct smbios_entry *entry = (struct smbios_entry *)(uintptr_t)address;
|
||||||
|
|
||||||
if (!address | !size)
|
if (!address || !size)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
if (memcmp(entry->anchor, "_SM_", 4))
|
if (memcmp(entry->anchor, "_SM_", 4))
|
||||||
|
|
Loading…
Add table
Reference in a new issue