]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
crush: Do not defeat RVO with unnecessary std::move
authorAdam C. Emerson <aemerson@redhat.com>
Thu, 2 Feb 2017 20:56:02 +0000 (15:56 -0500)
committerAdam C. Emerson <aemerson@redhat.com>
Fri, 3 Feb 2017 22:23:23 +0000 (17:23 -0500)
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
src/test/crush/crush.cc

index fd4ea89b6b7ed9ee3408ebb15fd281ffda0c8c64..024a7d45adb849cf55aa6b3bc74929d0a2b8b4f0 100644 (file)
@@ -77,7 +77,7 @@ std::unique_ptr<CrushWrapper> build_indep_map(CephContext *cct, int num_rack,
     delete f;
   }
 
-  return std::move(c);
+  return c;
 }
 
 int get_num_dups(const vector<int>& v)