Fix for coverity issue caused by
8811df3 (introduced a similar
check some lines earlier in the code causing the check to return
earlier).
at_least: At condition r < 0, the value of r must be at least 0.
dead_error_condition: The condition r < 0 cannot be true.
CID
1274289 (#1 of 1): Logically dead code (DEADCODE)
dead_error_begin: Execution cannot reach this statement
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
IndexedPath path2;
IndexedPath *path = &path2;
- if (r < 0) {
- derr << "error getting collection index for " << cid
- << ": " << cpp_strerror(-r) << dendl;
- goto fail;
- }
+
r = (*index)->lookup(oid, path, &exist);
if (r < 0) {
derr << "could not find " << oid << " in index: "