From 089a64c5dd9acbfdb16e6d34cb7b10ebf17d899c Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Fri, 14 Apr 2017 13:43:41 +0800 Subject: [PATCH] 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 --- src/mon/Monitor.cc | 1 - 1 file changed, 1 deletion(-) 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) -- 2.47.3