x86_64: fix warning on 1.40

The extra parens crept back in during a recent refactoring.

Change-Id: Iaba13ddea9b7bada09f6079db7e7f8133cbfc896
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/1994726
Reviewed-by: Dylan Reid <dgreid@chromium.org>
Commit-Queue: Dylan Reid <dgreid@chromium.org>
Tested-by: Dylan Reid <dgreid@chromium.org>
Tested-by: kokoro <noreply+kokoro@google.com>
This commit is contained in:
Dylan Reid 2020-01-12 17:29:07 +09:00 committed by Commit Bot
parent a54c64302a
commit 4377f048e9

View file

@ -711,7 +711,7 @@ impl X8664arch {
io_bus: &mut devices::Bus, io_bus: &mut devices::Bus,
serial_parameters: &BTreeMap<u8, SerialParameters>, serial_parameters: &BTreeMap<u8, SerialParameters>,
serial_jail: Option<Minijail>, serial_jail: Option<Minijail>,
) -> Result<(Option<u8>)> { ) -> Result<Option<u8>> {
let com_evt_1_3 = EventFd::new().map_err(Error::CreateEventFd)?; let com_evt_1_3 = EventFd::new().map_err(Error::CreateEventFd)?;
let com_evt_2_4 = EventFd::new().map_err(Error::CreateEventFd)?; let com_evt_2_4 = EventFd::new().map_err(Error::CreateEventFd)?;