diff options
| author | Andre Przywara <[email protected]> | 2025-03-27 15:33:04 +0000 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2025-04-08 16:23:51 -0600 |
| commit | 4d108c884b5bd5cef13fa1eb11a65eefd4c48d3f (patch) | |
| tree | c0f6cc3f60823c5dff92cdc88a406d514908489d /drivers | |
| parent | 921e4d480dff3206020eacd4873795d0e57d7c20 (diff) | |
usb: xhci: annotate switch/case fallthrough properly
The USB XHCI code uses an implicit switch/case fallthrough to share code
for handling full speed and low speed transfers.
Add our "fallthrough;" statement-like macro before the second label in
the XHCI code, to avoid a warning when GCC's -Wimplicit-fallthrough
warning option is enabled.
Signed-off-by: Andre Przywara <[email protected]>
Reviewed-by: Tom Rini <[email protected]>
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/usb/host/xhci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/host/xhci.c b/drivers/usb/host/xhci.c index d30725d3fca..3ee1f67190f 100644 --- a/drivers/usb/host/xhci.c +++ b/drivers/usb/host/xhci.c @@ -352,7 +352,7 @@ static unsigned int xhci_get_endpoint_interval(struct usb_device *udev, * since it uses the same rules as low speed interrupt * endpoints. */ - + fallthrough; case USB_SPEED_LOW: if (usb_endpoint_xfer_int(endpt_desc) || usb_endpoint_xfer_isoc(endpt_desc)) { |
