test: v4l2_subdevice: Remove std::move() that prevents copy elision

Moving a temporary value prevents copy elision. Remove it.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
This commit is contained in:
Laurent Pinchart 2019-04-26 17:46:04 +03:00
parent 4088ae7a20
commit d98ab6f2ae

View file

@ -39,7 +39,7 @@ int V4L2SubdeviceTest::init()
} }
DeviceMatch dm("vimc"); DeviceMatch dm("vimc");
media_ = std::move(enumerator_->search(dm)); media_ = enumerator_->search(dm);
if (!media_) { if (!media_) {
cerr << "Unable to find \'vimc\' media device node" << endl; cerr << "Unable to find \'vimc\' media device node" << endl;
return TestSkip; return TestSkip;