[PATCH] frv: NULL noise removal in frv xchg()
Clean up the FRV arch's xchg() function. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: David Howells <dhowells@redhat.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
ffca11104c
commit
7f78843556
1 changed files with 2 additions and 2 deletions
|
@ -227,7 +227,7 @@ extern unsigned long atomic_test_and_XOR_mask(unsigned long mask, volatile unsig
|
||||||
break; \
|
break; \
|
||||||
\
|
\
|
||||||
default: \
|
default: \
|
||||||
__xg_orig = 0; \
|
__xg_orig = (__typeof__(__xg_orig))0; \
|
||||||
asm volatile("break"); \
|
asm volatile("break"); \
|
||||||
break; \
|
break; \
|
||||||
} \
|
} \
|
||||||
|
@ -247,7 +247,7 @@ extern uint32_t __xchg_32(uint32_t i, volatile void *v);
|
||||||
switch (sizeof(__xg_orig)) { \
|
switch (sizeof(__xg_orig)) { \
|
||||||
case 4: __xg_orig = (__typeof__(*(ptr))) __xchg_32((uint32_t) x, __xg_ptr); break; \
|
case 4: __xg_orig = (__typeof__(*(ptr))) __xchg_32((uint32_t) x, __xg_ptr); break; \
|
||||||
default: \
|
default: \
|
||||||
__xg_orig = 0; \
|
__xg_orig = (__typeof__(__xg_orig))0; \
|
||||||
asm volatile("break"); \
|
asm volatile("break"); \
|
||||||
break; \
|
break; \
|
||||||
} \
|
} \
|
||||||
|
|
Loading…
Reference in a new issue