]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw/rgw_rados.cc: remove dead code
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Mon, 4 May 2015 22:51:36 +0000 (00:51 +0200)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Mon, 1 Jun 2015 04:59:26 +0000 (06:59 +0200)
CID 1274290 (#1 of 1): Logically dead code (DEADCODE)
dead_error_line: Execution cannot reach this statement return r;.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
src/rgw/rgw_rados.cc

index a58f4a24e14b3aa4f2ff6e6275d9053ff3658d33..9f850a337029d42e639fca694a65e95e12bc5219 100644 (file)
@@ -5172,8 +5172,6 @@ int RGWRados::Object::Read::prepare(int64_t *pofs, int64_t *pend)
         ldout(cct, 20) << "Read xattr: " << iter->first << dendl;
       }
     }
-    if (r < 0)
-      return r;
   }
 
   /* Convert all times go GMT to make them compatible */