]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
ceph-osdomap-tool: early return and remove never-read store statement 15905/head
authorKefu Chai <kchai@redhat.com>
Sun, 25 Jun 2017 15:00:00 +0000 (23:00 +0800)
committerKefu Chai <kchai@redhat.com>
Sun, 25 Jun 2017 15:00:05 +0000 (23:00 +0800)
commit4bcc03721a354b197f26ebc9df7fc5c3c3113571
treefeeae807586980c3de5b505ca8d5a9a763df1743
parent9cc0cf4979fc71a528d720e1053a45f969cd5c66
ceph-osdomap-tool: early return and remove never-read store statement

* silence clang analyzer's warning of: "Value stored to 'r' is never
  read"
* replace the "goto" statement with early return to improve the
  readability

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