projects
/
profile
/
ivi
/
kernel-adaptation-intel-automotive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7ed725c
)
arch/tile: misplaced parens near likely
author
roel
<roel.kluin@gmail.com>
Mon, 12 Dec 2011 22:34:06 +0000
(23:34 +0100)
committer
Chris Metcalf
<cmetcalf@tilera.com>
Mon, 12 Mar 2012 19:32:18 +0000
(15:32 -0400)
Parentheses were missing.
Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
arch/tile/lib/spinlock_32.c
patch
|
blob
|
history
diff --git
a/arch/tile/lib/spinlock_32.c
b/arch/tile/lib/spinlock_32.c
index
cb0999f
..
b16ac49
100644
(file)
--- 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;