]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mon: do not assign ret code to 0 twice 14549/head
authorKefu Chai <kchai@redhat.com>
Fri, 14 Apr 2017 05:43:41 +0000 (13:43 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 14 Apr 2017 10:30:42 +0000 (18:30 +0800)
silences warning of clang static ananlyzer:

Value stored to 't' is never read

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/mon/Monitor.cc

index a80ceaa95c6fd500a54f2ec99ef9bd51d84b3fa2..136eadbfdd7531c8b73389f2171556fe80fcc2d3 100644 (file)
@@ -3049,7 +3049,6 @@ void Monitor::handle_command(MonOpRequestRef op)
       if (detail == "detail")
        comb.append(rdata);
       rdata = comb;
-      r = 0;
     } else if (prefix == "df") {
       bool verbose = (detail == "detail");
       if (f)