git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
remove extra parentheses in return statement
[dpdk.git]
/
lib
/
librte_mempool
/
rte_mempool.h
diff --git
a/lib/librte_mempool/rte_mempool.h
b/lib/librte_mempool/rte_mempool.h
index
6e2390a
..
9745bf0
100644
(file)
--- a/
lib/librte_mempool/rte_mempool.h
+++ b/
lib/librte_mempool/rte_mempool.h
@@
-1260,7
+1260,7
@@
rte_mempool_virt2phy(const struct rte_mempool *mp, const void *elt)
uintptr_t off;
off = (const char *)elt - (const char *)mp->elt_va_start;
uintptr_t off;
off = (const char *)elt - (const char *)mp->elt_va_start;
- return
(mp->elt_pa[off >> mp->pg_shift] + (off & mp->pg_mask)
);
+ return
mp->elt_pa[off >> mp->pg_shift] + (off & mp->pg_mask
);
} else {
/*
* If huge pages are disabled, we cannot assume the
} else {
/*
* If huge pages are disabled, we cannot assume the