RDMA/hns: Remove unused RR mechanism
[linux-2.6-microblaze.git] / drivers / infiniband / hw / hns / hns_roce_alloc.c
index f950ec4..eef5df1 100644 (file)
@@ -63,16 +63,14 @@ int hns_roce_bitmap_alloc(struct hns_roce_bitmap *bitmap, unsigned long *obj)
        return ret;
 }
 
-void hns_roce_bitmap_free(struct hns_roce_bitmap *bitmap, unsigned long obj,
-                         int rr)
+void hns_roce_bitmap_free(struct hns_roce_bitmap *bitmap, unsigned long obj)
 {
        obj &= bitmap->max + bitmap->reserved_top - 1;
 
        spin_lock(&bitmap->lock);
        clear_bit(obj, bitmap->table);
 
-       if (!rr)
-               bitmap->last = min(bitmap->last, obj);
+       bitmap->last = min(bitmap->last, obj);
        bitmap->top = (bitmap->top + bitmap->max + bitmap->reserved_top)
                       & bitmap->mask;
        spin_unlock(&bitmap->lock);