]> rtime.felk.cvut.cz Git - zynq/linux.git/commitdiff
Bluetooth: mark expected switch fall-throughs
authorGustavo A. R. Silva <garsilva@embeddedor.com>
Thu, 12 Oct 2017 22:24:02 +0000 (17:24 -0500)
committerMichal Simek <michal.simek@xilinx.com>
Mon, 12 Mar 2018 15:16:43 +0000 (16:16 +0100)
In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.

In this particular case, notice that I replaced the
"deliberate fall-through..." comment with a "fall through"
comment, which is what GCC is expecting to find.

Signed-off-by: Gustavo A. R. Silva <garsilva@embeddedor.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
drivers/bluetooth/bcm203x.c
drivers/bluetooth/hci_ll.c

index 5ce6d4176dc302b41514a8867dd1958319fecbed..8e9547f195effe4801e25f195d53f4a0a6457897 100644 (file)
@@ -121,7 +121,7 @@ static void bcm203x_complete(struct urb *urb)
                }
 
                data->state = BCM203X_LOAD_FIRMWARE;
-
+               /* fall through */
        case BCM203X_LOAD_FIRMWARE:
                if (data->fw_sent == data->fw_size) {
                        usb_fill_int_urb(urb, udev, usb_rcvintpipe(udev, BCM203X_IN_EP),
index 17935d5635ccaaa9e4e7648707bb3992e4e20c56..a695d21af15fac786b2b17190bd7437539d45c20 100644 (file)
@@ -246,7 +246,7 @@ static void ll_device_want_to_wakeup(struct hci_uart *hu)
                 * perfectly safe to always send one.
                 */
                BT_DBG("dual wake-up-indication");
-               /* deliberate fall-through - do not add break */
+               /* fall through */
        case HCILL_ASLEEP:
                /* acknowledge device wake up */
                if (send_hcill_cmd(HCILL_WAKE_UP_ACK, hu) < 0) {