]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crush/builder.c: remove some unreachable return statements
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Thu, 8 May 2014 07:34:21 +0000 (09:34 +0200)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Thu, 8 May 2014 07:34:21 +0000 (09:34 +0200)
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
src/crush/builder.c

index eff0bf63a52da49a0562cf917e59a8213363c13d..c319620860205180d6d166210c37afc18dbf13ed 100644 (file)
@@ -724,7 +724,6 @@ int crush_bucket_add_item(struct crush_bucket *b, int item, int weight)
        default:
                return -1;
        }
-       return 0;
 }
 
 /************************************************/
@@ -937,7 +936,6 @@ int crush_bucket_remove_item(struct crush_bucket *b, int item)
        default:
                return -1;
        }
-       return 0;
 }
 
 
@@ -1043,7 +1041,6 @@ int crush_bucket_adjust_item_weight(struct crush_bucket *b, int item, int weight
        default:
                return -1;
        }
-       return 0;
 }
 
 /************************************************/
@@ -1159,7 +1156,6 @@ int crush_reweight_bucket(struct crush_map *crush, struct crush_bucket *b)
        default:
                return -1;
        }
-       return 0;
 }
 
 /***************************/