]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - kernel/futex.c
futex: remove the pointer math from double_unlock_hb
[linux-2.6-omap-h63xx.git] / kernel / futex.c
index 9c97f67d298e8ba18dd78e76c216cc6dca6383ce..2331b73f69323a5d59873d8613e6dadeafcbff51 100644 (file)
@@ -658,14 +658,8 @@ double_lock_hb(struct futex_hash_bucket *hb1, struct futex_hash_bucket *hb2)
 static inline void
 double_unlock_hb(struct futex_hash_bucket *hb1, struct futex_hash_bucket *hb2)
 {
-       if (hb1 <= hb2) {
-               spin_unlock(&hb2->lock);
-               if (hb1 < hb2)
-                       spin_unlock(&hb1->lock);
-       } else { /* hb1 > hb2 */
-               spin_unlock(&hb1->lock);
-               spin_unlock(&hb2->lock);
-       }
+       spin_unlock(&hb1->lock);
+       spin_unlock(&hb2->lock);
 }
 
 /*