]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crush: drop unused label
authorSage Weil <sage@newdream.net>
Mon, 12 Dec 2011 17:22:49 +0000 (09:22 -0800)
committerSage Weil <sage@newdream.net>
Mon, 12 Dec 2011 17:22:49 +0000 (09:22 -0800)
Signed-off-by: Sage Weil <sage@newdream.net>
src/crush/mapper.c

index 79a9814ceb6ca048c80658a305640e4e1bcad57c..c955c0a51f346bc388f76d6d095975e68949f34c 100644 (file)
@@ -477,7 +477,6 @@ int crush_do_rule(const struct crush_map *map,
        int i, j;
        int numrep;
        int firstn;
-       int rc = -1;
 
        BUG_ON((__u32)ruleno >= map->max_rules);
 
@@ -601,10 +600,7 @@ int crush_do_rule(const struct crush_map *map,
                        BUG_ON(1);
                }
        }
-       rc = result_len;
-
-out:
-       return rc;
+       return result_len;
 }