devices: virtio: video: remove redundant clone

We are taking ownership of params here, so no need to clone.

BUG=None
TEST=Video plays in Youtube.

Change-Id: I1013e669cde7e5d0001992d7620643054c03d87d
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/2409489
Tested-by: Alexandre Courbot <acourbot@chromium.org>
Tested-by: kokoro <noreply+kokoro@google.com>
Auto-Submit: Alexandre Courbot <acourbot@chromium.org>
Reviewed-by: Keiichi Watanabe <keiichiw@chromium.org>
Commit-Queue: Alexandre Courbot <acourbot@chromium.org>
This commit is contained in:
Alexandre Courbot 2020-09-15 20:42:19 +09:00 committed by Commit Bot
parent 09357c8fb8
commit 54dce6fb9c

View file

@ -604,7 +604,7 @@ impl<'a> Decoder<'a> {
// Only a few parameters can be changed by the guest. // Only a few parameters can be changed by the guest.
ctx.in_params.format = params.format; ctx.in_params.format = params.format;
ctx.in_params.plane_formats = params.plane_formats.clone(); ctx.in_params.plane_formats = params.plane_formats;
} }
QueueType::Output => { QueueType::Output => {
// The guest cannot update parameters for output queue in the decoder. // The guest cannot update parameters for output queue in the decoder.