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
/
arm
/
rte_cpuflags.c
diff --git
a/lib/librte_eal/common/arch/arm/rte_cpuflags.c
b/lib/librte_eal/common/arch/arm/rte_cpuflags.c
index
79160a6
..
35338ef
100644
(file)
--- a/
lib/librte_eal/common/arch/arm/rte_cpuflags.c
+++ b/
lib/librte_eal/common/arch/arm/rte_cpuflags.c
@@
-137,7
+137,7
@@
rte_cpu_get_features(hwcap_registers_t out)
_Elfx_auxv_t auxv;
auxv_fd = open("/proc/self/auxv", O_RDONLY);
- assert(auxv_fd);
+ assert(auxv_fd
!= -1
);
while (read(auxv_fd, &auxv, sizeof(auxv)) == sizeof(auxv)) {
if (auxv.a_type == AT_HWCAP) {
out[REG_HWCAP] = auxv.a_un.a_val;