]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
tools/rados: do not assign never read variable 18015/head
authorKefu Chai <kchai@redhat.com>
Thu, 28 Sep 2017 07:50:46 +0000 (15:50 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 29 Sep 2017 03:01:53 +0000 (11:01 +0800)
commit61a61f996834ae2e08877c994bf6c726975095f6
tree0cfe4ab8cb7b0605144f515195fe186fd1c31df7
parentbd4db59197093f2100cab5d1a1b61ddf251d41d8
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 <kchai@redhat.com>
src/tools/rados/PoolDump.cc