]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
bhyve: Simplify control flow in the xhci device model
authorMark Johnston <markj@FreeBSD.org>
Mon, 14 Nov 2022 20:08:45 +0000 (15:08 -0500)
committerMark Johnston <markj@FreeBSD.org>
Mon, 14 Nov 2022 20:08:45 +0000 (15:08 -0500)
commitc4c368fb3ecc426660f79b1c25f18d0401ff96fc
tree36b249b02e9b758e50b7422d2c70ca572c3efe3d
parentdb494ceb65ef301c8fb48f57b60c4f7a9cfebba5
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
usr.sbin/bhyve/pci_xhci.c