Code Review
/
deb_dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
New upstream version 16.11.4
[deb_dpdk.git]
/
lib
/
librte_eal
/
common
/
arch
/
ppc_64
/
rte_cpuflags.c
diff --git
a/lib/librte_eal/common/arch/ppc_64/rte_cpuflags.c
b/lib/librte_eal/common/arch/ppc_64/rte_cpuflags.c
index
fcf96e0
..
970a61c
100644
(file)
--- a/
lib/librte_eal/common/arch/ppc_64/rte_cpuflags.c
+++ b/
lib/librte_eal/common/arch/ppc_64/rte_cpuflags.c
@@
-108,7
+108,7
@@
rte_cpu_get_features(hwcap_registers_t out)
Elf64_auxv_t auxv;
auxv_fd = open("/proc/self/auxv", O_RDONLY);
- assert(auxv_fd);
+ assert(auxv_fd
!= -1
);
while (read(auxv_fd, &auxv,
sizeof(Elf64_auxv_t)) == sizeof(Elf64_auxv_t)) {
if (auxv.a_type == AT_HWCAP)