]> git.droids-corp.org - dpdk.git/blobdiff - lib/librte_eal/common/include/arch/ppc_64/rte_spinlock.h
remove extra parentheses in return statement
[dpdk.git] / lib / librte_eal / common / include / arch / ppc_64 / rte_spinlock.h
index 3336435bc2aa3871d1671bfd6ca13e1e3630a431..af139c9d35ed51ee1edc926e83152283ea80a8ca 100644 (file)
@@ -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