aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-frv/atomic.h
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2006-06-23 05:04:09 -0400
committerLinus Torvalds <torvalds@g5.osdl.org>2006-06-23 10:42:55 -0400
commit7f788435568795c4cd29301bb4ccf7aff54f5051 (patch)
tree664b5c222a42da3b44da6b11c18cccc6e13425ce /include/asm-frv/atomic.h
parentffca11104c06aff1641b9787f9e5b1099187ff83 (diff)
[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>
Diffstat (limited to 'include/asm-frv/atomic.h')
-rw-r--r--include/asm-frv/atomic.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/asm-frv/atomic.h b/include/asm-frv/atomic.h
index 9a4ff03c3969..066386ac238e 100644
--- a/include/asm-frv/atomic.h
+++ b/include/asm-frv/atomic.h
@@ -227,7 +227,7 @@ extern unsigned long atomic_test_and_XOR_mask(unsigned long mask, volatile unsig
227 break; \ 227 break; \
228 \ 228 \
229 default: \ 229 default: \
230 __xg_orig = 0; \ 230 __xg_orig = (__typeof__(__xg_orig))0; \
231 asm volatile("break"); \ 231 asm volatile("break"); \
232 break; \ 232 break; \
233 } \ 233 } \
@@ -247,7 +247,7 @@ extern uint32_t __xchg_32(uint32_t i, volatile void *v);
247 switch (sizeof(__xg_orig)) { \ 247 switch (sizeof(__xg_orig)) { \
248 case 4: __xg_orig = (__typeof__(*(ptr))) __xchg_32((uint32_t) x, __xg_ptr); break; \ 248 case 4: __xg_orig = (__typeof__(*(ptr))) __xchg_32((uint32_t) x, __xg_ptr); break; \
249 default: \ 249 default: \
250 __xg_orig = 0; \ 250 __xg_orig = (__typeof__(__xg_orig))0; \
251 asm volatile("break"); \ 251 asm volatile("break"); \
252 break; \ 252 break; \
253 } \ 253 } \