]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/crush/mapper.c
update sources to v12.1.2
[ceph.git] / ceph / src / crush / mapper.c
index 8ea91897dfa412cf1518e66c0dbce9f9fac3584a..e15039ed944b9b880647e73d8cafd38d9f6c4a46 100644 (file)
@@ -304,8 +304,7 @@ static inline __u32 *get_choose_arg_weights(const struct crush_bucket_straw2 *bu
                                             int position)
 {
   if ((arg == NULL) ||
-      (arg->weight_set == NULL) ||
-      (arg->weight_set_size == 0))
+      (arg->weight_set == NULL))
     return bucket->item_weights;
   if (position >= arg->weight_set_size)
     position = arg->weight_set_size - 1;