]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw_rados.cc: remove dead code
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Thu, 30 Oct 2014 02:44:30 +0000 (03:44 +0100)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Tue, 11 Nov 2014 12:26:37 +0000 (13:26 +0100)
Fix for:

CID 1128391 (#1 of 1): Logically dead code (DEADCODE)
 dead_error_line: Execution cannot reach this statement goto done_err;

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

index b9b45139bb2893c66dcfca8f707a68304dc2d0f5..5ff429471ae4b5d2dbb3b652957b6f41fb3e81a3 100644 (file)
@@ -4305,8 +4305,6 @@ int RGWRados::prepare_get_obj(void *ctx, rgw_obj& obj,
         ldout(cct, 20) << "Read xattr: " << iter->first << dendl;
       }
     }
-    if (r < 0)
-      goto done_err;
   }
 
   /* Convert all times go GMT to make them compatible */