From: Kefu Chai Date: Thu, 28 Sep 2017 07:50:46 +0000 (+0800) Subject: tools/rados: do not assign never read variable X-Git-Tag: v13.0.1~733^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F18015%2Fhead;p=ceph.git tools/rados: do not assign never read variable actually "r" is always 0 in that branch. so it's a no-op. this silences the clang analyzer warning of Value stored to 'r' is never read Signed-off-by: Kefu Chai --- diff --git a/src/tools/rados/PoolDump.cc b/src/tools/rados/PoolDump.cc index ad7a1a4dfefb..405f455e8d34 100644 --- a/src/tools/rados/PoolDump.cc +++ b/src/tools/rados/PoolDump.cc @@ -87,7 +87,6 @@ int PoolDump::dump(IoCtx *io_ctx) if (outdata.length() < op_size) { // No more data - r = 0; break; } offset += outdata.length(); @@ -151,7 +150,6 @@ int PoolDump::dump(IoCtx *io_ctx) } r = values.size(); } while (r == MAX_READ); - r = 0; // Close object // =============