Bluetooth: btusb: Fix fall-through warnings
authormark-yw.chen <mark-yw.chen@mediatek.com>
Fri, 6 Aug 2021 01:35:16 +0000 (09:35 +0800)
committerMarcel Holtmann <marcel@holtmann.org>
Fri, 6 Aug 2021 12:49:25 +0000 (14:49 +0200)
Fix fall-through warnings:
drivers/bluetooth/btusb.c: In function ‘btusb_recv_acl_mtk’:
drivers/bluetooth/btusb.c:4033:3: warning:
this statement may fall through [-Wimplicit-fallthrough=]
 4033 |   usb_disable_autosuspend(data->udev);
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/bluetooth/btusb.c:4034:2: note: here
 4034 |  case 0x05ff:  /* Firmware debug logging 1 */
      |  ^~~~

Signed-off-by: mark-yw.chen <mark-yw.chen@mediatek.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
drivers/bluetooth/btusb.c

index a97af4e..488f110 100644 (file)
@@ -3008,6 +3008,7 @@ static int btusb_recv_acl_mtk(struct hci_dev *hdev, struct sk_buff *skb)
                 * suspend and thus disable auto-suspend.
                 */
                usb_disable_autosuspend(data->udev);
+               fallthrough;
        case 0x05ff:            /* Firmware debug logging 1 */
        case 0x05fe:            /* Firmware debug logging 2 */
                return hci_recv_diag(hdev, skb);