Skip to content

Commit fac72b2

Browse files
GustavoARSilvaholtmann
authored andcommitted
Bluetooth: mark expected switch fall-throughs
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 <[email protected]> Signed-off-by: Marcel Holtmann <[email protected]>
1 parent 2d13e34 commit fac72b2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

drivers/bluetooth/bcm203x.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ static void bcm203x_complete(struct urb *urb)
121121
}
122122

123123
data->state = BCM203X_LOAD_FIRMWARE;
124-
124+
/* fall through */
125125
case BCM203X_LOAD_FIRMWARE:
126126
if (data->fw_sent == data->fw_size) {
127127
usb_fill_int_urb(urb, udev, usb_rcvintpipe(udev, BCM203X_IN_EP),

drivers/bluetooth/hci_ll.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ static void ll_device_want_to_wakeup(struct hci_uart *hu)
242242
* perfectly safe to always send one.
243243
*/
244244
BT_DBG("dual wake-up-indication");
245-
/* deliberate fall-through - do not add break */
245+
/* fall through */
246246
case HCILL_ASLEEP:
247247
/* acknowledge device wake up */
248248
if (send_hcill_cmd(HCILL_WAKE_UP_ACK, hu) < 0) {

0 commit comments

Comments
 (0)