HomeFreeBSD

bhyve: Simplify control flow in the xhci device model

Description

bhyve: Simplify control flow in the xhci device model

We only need to call pci_xhci_xfer_complete() when handling a transfer
to the control endpoint, so move that code into the epid == 1 block and
eliminate a goto. Also remove an unneeded reinitialization of
setup_trb.

No functional change intended.

MFC after: 1 week
Reviewed by: corvink, jhb
Differential Revision: https://reviews.freebsd.org/D37287

(cherry picked from commit c4c368fb3ecc426660f79b1c25f18d0401ff96fc)

Details

Provenance
markjAuthored on Nov 14 2022, 8:08 PM
Reviewer
corvink
Differential Revision
D37287: bhyve: Simplify control flow in the xhci device model
Parents
rG79e5fc020e0c: ksan: Build sanitizer runtimes without stack-smashing protection
Branches
Unknown
Tags
Unknown