diff options
| author | Dave Jones <davej@suse.de> | 2002-04-02 19:21:43 -0800 |
|---|---|---|
| committer | Dave Jones <davej@suse.de> | 2002-04-02 19:21:43 -0800 |
| commit | c398fde6ca4e2741c25b1920203653c2e6205604 (patch) | |
| tree | fb51a1ad7e3e5df2192046e6072fd177676acd6d /include/asm-mips | |
| parent | 870b38b01fc385425704eac75aefd79eb553f094 (diff) | |
[PATCH] Fix up broken do while macros.
Diffstat (limited to 'include/asm-mips')
| -rw-r--r-- | include/asm-mips/spinlock.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/asm-mips/spinlock.h b/include/asm-mips/spinlock.h index 61ebfa6603eb..fb02686f7896 100644 --- a/include/asm-mips/spinlock.h +++ b/include/asm-mips/spinlock.h @@ -19,10 +19,10 @@ typedef struct { #define SPIN_LOCK_UNLOCKED (spinlock_t) { 0 } -#define spin_lock_init(x) do { (x)->lock = 0; } while(0); +#define spin_lock_init(x) do { (x)->lock = 0; } while(0) #define spin_is_locked(x) ((x)->lock != 0) -#define spin_unlock_wait(x) ({ do { barrier(); } while ((x)->lock); }) +#define spin_unlock_wait(x) do { barrier(); } while ((x)->lock) /* * Simple spin lock operations. There are two variants, one clears IRQ's |
