]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
os/filestore: do not set never read variable
authorKefu Chai <kchai@redhat.com>
Thu, 28 Sep 2017 07:42:12 +0000 (15:42 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 29 Sep 2017 03:01:53 +0000 (11:01 +0800)
commita9c5e9dd0e5743d0cc70e5f3d3ca296346d14776
tree03134c1ae64364ac9a48f7d914f4937d70eb0fa8
parent1087350aaca6adfc698aa00eb37d6064557b598b
os/filestore: do not set never read variable

do not set "omap_fsid_fd" to -1 after ::close() it.

also move it's definition to where it is use for the first time for
better readability.

this silences the clang analyzer warning of:

Value stored to 'omap_fsid_fd' is never read

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/os/filestore/FileStore.cc