osd/PGBackend: Remove superfluous breaks

Remove superfuous breaks, as there is a 'return' before them.

Signed-off-by: Liao Pingfang <liao.pingfang@zte.com.cn>
This commit is contained in:
Liao Pingfang 2020-07-14 10:02:17 +08:00
parent 1ac5c74502
commit 393741b768

View File

@ -261,16 +261,12 @@ private:
switch (state) { switch (state) {
case ECBackend::RecoveryOp::IDLE: case ECBackend::RecoveryOp::IDLE:
return "IDLE"; return "IDLE";
break;
case ECBackend::RecoveryOp::READING: case ECBackend::RecoveryOp::READING:
return "READING"; return "READING";
break;
case ECBackend::RecoveryOp::WRITING: case ECBackend::RecoveryOp::WRITING:
return "WRITING"; return "WRITING";
break;
case ECBackend::RecoveryOp::COMPLETE: case ECBackend::RecoveryOp::COMPLETE:
return "COMPLETE"; return "COMPLETE";
break;
default: default:
ceph_abort(); ceph_abort();
return ""; return "";