]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
os: Removing dead code from LFNIndex.cc 17297/head
authoramitkuma <amitkuma@redhat.com>
Mon, 28 Aug 2017 16:46:18 +0000 (22:16 +0530)
committeramitkuma <amitkuma@redhat.com>
Mon, 28 Aug 2017 16:46:18 +0000 (22:16 +0530)
commitcef851b757ec043a4275bb79cf5763631d389c7c
treeb230216968f4b8a245bee50cffb630dfd557f297
parent0bef6c7753dd3d7bc4e00a0794da805ca6ac79ca
os: Removing dead code from LFNIndex.cc

Fixes the coverity issue:

** 1394832 Logically dead code
cannot_single: At condition r, the value of r
cannot be equal to 0.
dead_error_condition: The condition r must be true.
CID 1394832 (#1 of 1): Logically dead code (DEADCODE)
dead_error_line: Execution cannot reach the expression
-22 inside this statement: return r ? 0 : -22;.

Signed-off-by: Amit Kumar <amitkuma@redhat.com>
src/os/filestore/LFNIndex.cc