summaryrefslogtreecommitdiff
path: root/utils/ldd.c
diff options
context:
space:
mode:
Diffstat (limited to 'utils/ldd.c')
-rw-r--r--utils/ldd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/ldd.c b/utils/ldd.c
index 908370dfe..2812d2a07 100644
--- a/utils/ldd.c
+++ b/utils/ldd.c
@@ -231,7 +231,7 @@ static int check_elf_header(ElfW(Ehdr) *const ehdr)
}
/* Check if the target endianness matches the host's endianness */
- byteswap = (ehdr->e_ident[5] == ELFDATAM) ? 0 : 1;
+ byteswap = !(ehdr->e_ident[5] == ELFDATAM);
/* Be very lazy, and only byteswap the stuff we use */
if (byteswap) {