diff options
author | roel <roel.kluin@gmail.com> | 2011-12-12 22:34:06 (GMT) |
---|---|---|
committer | Chris Metcalf <cmetcalf@tilera.com> | 2012-03-12 19:32:18 (GMT) |
commit | cf8c1dafe19ae9f855bf7b9cce2e13b26c3289b7 (patch) | |
tree | 959109b649eb835e1d1f3c104f31863e9d1c9fae | |
parent | 7ed725cf5d21f07da5f01dfe9ffbf5327f899b59 (diff) | |
download | linux-fsl-qoriq-cf8c1dafe19ae9f855bf7b9cce2e13b26c3289b7.tar.xz |
arch/tile: misplaced parens near likely
Parentheses were missing.
Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
-rw-r--r-- | arch/tile/lib/spinlock_32.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/tile/lib/spinlock_32.c b/arch/tile/lib/spinlock_32.c index cb0999f..b16ac49 100644 --- a/arch/tile/lib/spinlock_32.c +++ b/arch/tile/lib/spinlock_32.c @@ -144,7 +144,7 @@ void arch_read_unlock(arch_rwlock_t *rwlock) for (;;) { __insn_mtspr(SPR_INTERRUPT_CRITICAL_SECTION, 1); val = __insn_tns((int *)&rwlock->lock); - if (likely(val & 1) == 0) { + if (likely((val & 1) == 0)) { rwlock->lock = val - (1 << _RD_COUNT_SHIFT); __insn_mtspr(SPR_INTERRUPT_CRITICAL_SECTION, 0); break; |