Merge pull request #9541 from renhwztetecs/renhw-wip-rbd

rbd: cleanup unnecessary switch breaks

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
This commit is contained in:
Jason Dillaman 2016-06-08 21:06:28 -04:00
commit 7c9cea0c59

View File

@ -674,28 +674,20 @@ std::string mirror_image_status_state(librbd::mirror_image_status_state_t state)
switch (state) {
case MIRROR_IMAGE_STATUS_STATE_UNKNOWN:
return "unknown";
break;
case MIRROR_IMAGE_STATUS_STATE_ERROR:
return "error";
break;
case MIRROR_IMAGE_STATUS_STATE_SYNCING:
return "syncing";
break;
case MIRROR_IMAGE_STATUS_STATE_STARTING_REPLAY:
return "starting_replay";
break;
case MIRROR_IMAGE_STATUS_STATE_REPLAYING:
return "replaying";
break;
case MIRROR_IMAGE_STATUS_STATE_STOPPING_REPLAY:
return "stopping_replay";
break;
case MIRROR_IMAGE_STATUS_STATE_STOPPED:
return "stopped";
break;
default:
return "unknown (" + stringify(static_cast<uint32_t>(state)) + ")";
break;
}
}