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_eal
/
common
/
include
/
arch
/
ppc_64
/
rte_spinlock.h
diff --git
a/lib/librte_eal/common/include/arch/ppc_64/rte_spinlock.h
b/lib/librte_eal/common/include/arch/ppc_64/rte_spinlock.h
index
3336435
..
af139c9
100644
(file)
--- a/
lib/librte_eal/common/include/arch/ppc_64/rte_spinlock.h
+++ b/
lib/librte_eal/common/include/arch/ppc_64/rte_spinlock.h
@@
-61,7
+61,7
@@
rte_spinlock_unlock(rte_spinlock_t *sl)
static inline int
rte_spinlock_trylock(rte_spinlock_t *sl)
{
- return
(__sync_lock_test_and_set(&sl->locked, 1) == 0)
;
+ return
__sync_lock_test_and_set(&sl->locked, 1) == 0
;
}
#endif