diff options
author | Eugeniu Rosca <roscaeugeniu@gmail.com> | 2018-07-14 22:53:32 +0200 |
---|---|---|
committer | Alexander Graf <agraf@suse.de> | 2018-08-21 00:04:24 +0200 |
commit | dbb148b22cbf242156edf53cca6d661cd320cb83 (patch) | |
tree | a6bf782ca7bec7dfdc879fbd42b9135dfbcc9786 /cmd/efi.c | |
parent | c3a40cce2a9765de6776e2c099d59879e49dfe4b (diff) | |
download | u-boot-dbb148b22cbf242156edf53cca6d661cd320cb83.tar.gz u-boot-dbb148b22cbf242156edf53cca6d661cd320cb83.tar.bz2 u-boot-dbb148b22cbf242156edf53cca6d661cd320cb83.zip |
cmd: efi: Clarify calculation precedence for '&' and '?'
Fix cppcheck complaint:
[cmd/efi.c:173]: (style) Clarify calculation precedence for '&' and '?'.
Fixes: f1a0bafb5802 ("efi: Add a command to display the memory map")
Signed-off-by: Eugeniu Rosca <erosca@de.adit-jv.com>
Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'cmd/efi.c')
-rw-r--r-- | cmd/efi.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -173,7 +173,7 @@ static void efi_print_mem_table(struct efi_entry_memmap *map, bool first; int j; - printf("%c%llx: ", attr & EFI_MEMORY_RUNTIME ? 'r' : ' ', + printf("%c%llx: ", (attr & EFI_MEMORY_RUNTIME) ? 'r' : ' ', attr & ~EFI_MEMORY_RUNTIME); for (j = 0, first = true; j < ARRAY_SIZE(mem_attr); j++) { if (attr & mem_attr[j].val) { |