Skip to content

Commit

Permalink
arch/tile: misplaced parens near likely
Browse files Browse the repository at this point in the history
Parentheses were missing.

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
  • Loading branch information
roel authored and Chris Metcalf committed Mar 12, 2012
1 parent 7ed725c commit cf8c1da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/tile/lib/spinlock_32.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit cf8c1da

Please sign in to comment.