From: Danny Al-Gaaf Date: Thu, 8 May 2014 07:34:21 +0000 (+0200) Subject: crush/builder.c: remove some unreachable return statements X-Git-Tag: v0.81~45^2~9 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=9ad60428dc07334406839ff1f89a61c44bd001e1;p=ceph.git crush/builder.c: remove some unreachable return statements Signed-off-by: Danny Al-Gaaf --- diff --git a/src/crush/builder.c b/src/crush/builder.c index eff0bf63a52..c3196208602 100644 --- a/src/crush/builder.c +++ b/src/crush/builder.c @@ -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; } /***************************/