diff options
author | Nicholas Mc Guire <der.herr@hofr.at> | 2014-02-08 11:39:20 (GMT) |
---|---|---|
committer | Scott Wood <scottwood@freescale.com> | 2014-04-10 00:19:28 (GMT) |
commit | bfa7924c5caf99cff122eaa3205596199e8c772a (patch) | |
tree | f4e825f3056e8eb46336fddbe0c01c94bbcd569b /include/linux | |
parent | c237dbc7612732a96d7b51e95be60579a2769daa (diff) | |
download | linux-fsl-qoriq-bfa7924c5caf99cff122eaa3205596199e8c772a.tar.xz |
rt: Cleanup of unnecessary do while 0 in read/write _lock()
With the migration pushdonw a few of the do{ }while(0)
loops became obsolete but got left over - this patch
only removes this fallout.
Patch applies on top of 3.12.9-rt13
Signed-off-by: Nicholas Mc Guire <der.herr@hofr.at>
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/rwlock_rt.h | 20 |
1 files changed, 4 insertions, 16 deletions
diff --git a/include/linux/rwlock_rt.h b/include/linux/rwlock_rt.h index e85a5df..49ed2d4 100644 --- a/include/linux/rwlock_rt.h +++ b/include/linux/rwlock_rt.h @@ -42,10 +42,7 @@ extern void __rt_rwlock_init(rwlock_t *rwlock, char *name, struct lock_class_key flags = rt_write_lock_irqsave(lock); \ } while (0) -#define read_lock(lock) \ - do { \ - rt_read_lock(lock); \ - } while (0) +#define read_lock(lock) rt_read_lock(lock) #define read_lock_bh(lock) \ do { \ @@ -55,10 +52,7 @@ extern void __rt_rwlock_init(rwlock_t *rwlock, char *name, struct lock_class_key #define read_lock_irq(lock) read_lock(lock) -#define write_lock(lock) \ - do { \ - rt_write_lock(lock); \ - } while (0) +#define write_lock(lock) rt_write_lock(lock) #define write_lock_bh(lock) \ do { \ @@ -68,10 +62,7 @@ extern void __rt_rwlock_init(rwlock_t *rwlock, char *name, struct lock_class_key #define write_lock_irq(lock) write_lock(lock) -#define read_unlock(lock) \ - do { \ - rt_read_unlock(lock); \ - } while (0) +#define read_unlock(lock) rt_read_unlock(lock) #define read_unlock_bh(lock) \ do { \ @@ -81,10 +72,7 @@ extern void __rt_rwlock_init(rwlock_t *rwlock, char *name, struct lock_class_key #define read_unlock_irq(lock) read_unlock(lock) -#define write_unlock(lock) \ - do { \ - rt_write_unlock(lock); \ - } while (0) +#define write_unlock(lock) rt_write_unlock(lock) #define write_unlock_bh(lock) \ do { \ |