usb(4): Code refactoring as a pre-step for adding missing synchronization mechanism.
authorHans Petter Selasky <hselasky@FreeBSD.org>
Tue, 4 Apr 2023 15:15:38 +0000 (17:15 +0200)
committerHans Petter Selasky <hselasky@FreeBSD.org>
Sat, 8 Apr 2023 14:52:20 +0000 (16:52 +0200)
commit03a2e432d5cc2eedb9304faea2b19051c84caecf
treedafb6eecfa70feb6d89803ed596403485ad117bc
parentee8f5c2a31ec6f5913f404daeade6e1ac30f4336
usb(4): Code refactoring as a pre-step for adding missing synchronization mechanism.

Move code in switch cases into own functions to make later changes easier to track.

No functional change, except for removing a superfluous break statement when
range checking USB_FS_MAX_FRAMES, in the USB_FS_OPEN case.
It should not have been there at all.

Suggested by: emaste@
MFC after: 1 week
Sponsored by: NVIDIA Networking
sys/dev/usb/usb_generic.c