From: roel Date: Mon, 12 Dec 2011 22:34:06 +0000 (+0100) Subject: arch/tile: misplaced parens near likely X-Git-Tag: v3.3~17^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cf8c1dafe19ae9f855bf7b9cce2e13b26c3289b7;p=profile%2Fivi%2Fkernel-adaptation-intel-automotive.git arch/tile: misplaced parens near likely Parentheses were missing. Signed-off-by: Roel Kluin Signed-off-by: Chris Metcalf --- 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;