@@ -99,12 +99,12 @@ class MyRecordReplay : public BnBinderRecordReplayTest {
9999 GENERATE_GETTER_SETTER (SingleDataParcelableArray, std::vector<SingleDataParcelable>);
100100
101101 Status setFileDescriptor (unique_fd input) {
102- mFd = std::move ( unique_fd (dup (input) ));
102+ mFd = unique_fd (dup (input));
103103 return Status::ok ();
104104 }
105105
106106 Status getFileDescriptor (unique_fd* output) {
107- *output = std::move ( unique_fd (dup (mFd ) ));
107+ *output = unique_fd (dup (mFd ));
108108 return Status::ok ();
109109 }
110110 unique_fd mFd ;
@@ -117,7 +117,7 @@ std::vector<uint8_t> retrieveData(borrowed_fd fd) {
117117 std::vector<uint8_t > buffer (fdStat.st_size );
118118 auto readResult = android::base::ReadFully (fd, buffer.data (), fdStat.st_size );
119119 EXPECT_TRUE (readResult != 0 );
120- return std::move ( buffer) ;
120+ return buffer;
121121}
122122
123123void replayFuzzService (const sp<BpBinder>& binder, const RecordedTransaction& transaction) {
@@ -387,8 +387,8 @@ TEST_F(BinderRecordReplayTest, ReplayFd) {
387387
388388 // When fds are replayed, it will be replaced by /dev/null..reading from it should yield
389389 // null data
390- recordReplay (&IBinderRecordReplayTest::setFileDescriptor, std::move ( unique_fd (dup (saved) )),
391- &IBinderRecordReplayTest::getFileDescriptor, std::move ( unique_fd (dup (changed) )));
390+ recordReplay (&IBinderRecordReplayTest::setFileDescriptor, unique_fd (dup (saved)),
391+ &IBinderRecordReplayTest::getFileDescriptor, unique_fd (dup (changed)));
392392}
393393
394394int main (int argc, char ** argv) {
0 commit comments