diff options
author | Daniel Verkamp <dverkamp@chromium.org> | 2019-10-16 13:33:27 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2019-11-08 22:18:17 +0000 |
commit | a1bc67ffd7bac7bdd26fe0453a3020673a9f3786 (patch) | |
tree | ec66507c8d30cf5e3c40f28af7fdc7780a61bf1f /devices/src/usb/xhci | |
parent | 0124500a281be85eb4bc671cdfd4fb3bfe3b30fb (diff) | |
download | crosvm-a1bc67ffd7bac7bdd26fe0453a3020673a9f3786.tar crosvm-a1bc67ffd7bac7bdd26fe0453a3020673a9f3786.tar.gz crosvm-a1bc67ffd7bac7bdd26fe0453a3020673a9f3786.tar.bz2 crosvm-a1bc67ffd7bac7bdd26fe0453a3020673a9f3786.tar.lz crosvm-a1bc67ffd7bac7bdd26fe0453a3020673a9f3786.tar.xz crosvm-a1bc67ffd7bac7bdd26fe0453a3020673a9f3786.tar.zst crosvm-a1bc67ffd7bac7bdd26fe0453a3020673a9f3786.zip |
Remove unneeded return statements
BUG=None TEST=bin/clippy Change-Id: I2cf3b961baefd21fedaa6b545c1c7ecfb25a9efc Signed-off-by: Daniel Verkamp <dverkamp@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/1896088 Reviewed-by: Zach Reizner <zachr@chromium.org> Tested-by: kokoro <noreply+kokoro@google.com>
Diffstat (limited to 'devices/src/usb/xhci')
-rw-r--r-- | devices/src/usb/xhci/xhci_controller.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/devices/src/usb/xhci/xhci_controller.rs b/devices/src/usb/xhci/xhci_controller.rs index 78022d3..5db31ef 100644 --- a/devices/src/usb/xhci/xhci_controller.rs +++ b/devices/src/usb/xhci/xhci_controller.rs @@ -158,7 +158,6 @@ impl XhciController { } _ => { error!("xhci controller is in a wrong state"); - return; } } } @@ -201,7 +200,6 @@ impl PciDevice for XhciController { } _ => { error!("xhci controller is in a wrong state"); - return; } } } @@ -254,7 +252,6 @@ impl PciDevice for XhciController { } _ => { error!("xhci controller is in a wrong state"); - return; } } } @@ -274,10 +271,10 @@ impl PciDevice for XhciController { } _ => { error!("xhci controller is in a wrong state"); - return; } } } + fn on_device_sandboxed(&mut self) { self.init_when_forked(); } |