diff options
Diffstat (limited to 'kernel/futex.c')
-rw-r--r-- | kernel/futex.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/kernel/futex.c b/kernel/futex.c index 9c97f67d298e..2331b73f6932 100644 --- a/kernel/futex.c +++ b/kernel/futex.c | |||
@@ -658,14 +658,8 @@ double_lock_hb(struct futex_hash_bucket *hb1, struct futex_hash_bucket *hb2) | |||
658 | static inline void | 658 | static inline void |
659 | double_unlock_hb(struct futex_hash_bucket *hb1, struct futex_hash_bucket *hb2) | 659 | double_unlock_hb(struct futex_hash_bucket *hb1, struct futex_hash_bucket *hb2) |
660 | { | 660 | { |
661 | if (hb1 <= hb2) { | 661 | spin_unlock(&hb1->lock); |
662 | spin_unlock(&hb2->lock); | 662 | spin_unlock(&hb2->lock); |
663 | if (hb1 < hb2) | ||
664 | spin_unlock(&hb1->lock); | ||
665 | } else { /* hb1 > hb2 */ | ||
666 | spin_unlock(&hb1->lock); | ||
667 | spin_unlock(&hb2->lock); | ||
668 | } | ||
669 | } | 663 | } |
670 | 664 | ||
671 | /* | 665 | /* |