]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rbd: fix logically dead code in function list_process_image 16971/head
authorLuo Kexue <luo.kexue@zte.com.cn>
Thu, 10 Aug 2017 15:05:49 +0000 (18:05 +0300)
committerLuo Kexue <luo.kexue@zte.com.cn>
Thu, 10 Aug 2017 15:05:49 +0000 (18:05 +0300)
Signed-off-by: Luo Kexue <luo.kexue@zte.com.cn>
src/tools/rbd/action/List.cc

index fbac3e106559190dd7d1aa6641e0c4e02c198cc3..033ac8812e8ab9fe41d30db9c2da6d356ccf0365 100644 (file)
@@ -141,7 +141,7 @@ int list_process_image(librados::Rados* rados, WorkerEntry* w, bool lflag, Forma
     }
   }
 
-  return r < 0 ? r : 0;
+  return 0;
 }
 
 int do_list(std::string &pool_name, bool lflag, int threads, Formatter *f) {