From: Kefu Chai Date: Fri, 14 Apr 2017 05:43:41 +0000 (+0800) Subject: mon: do not assign ret code to 0 twice X-Git-Tag: v12.0.3~326^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=089a64c5dd9acbfdb16e6d34cb7b10ebf17d899c;p=ceph.git mon: do not assign ret code to 0 twice silences warning of clang static ananlyzer: Value stored to 't' is never read Signed-off-by: Kefu Chai --- diff --git a/src/mon/Monitor.cc b/src/mon/Monitor.cc index a80ceaa95c6f..136eadbfdd75 100644 --- a/src/mon/Monitor.cc +++ b/src/mon/Monitor.cc @@ -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)