aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGustavo A. R. Silva <garsilva@embeddedor.com>2017-10-12 18:24:02 -0400
committerMarcel Holtmann <marcel@holtmann.org>2017-10-14 03:25:51 -0400
commitfac72b243cc789bb209e6eca824919b42d98cfe2 (patch)
tree0217c1a2cf4143d571667da656f4ad85eb351055
parent2d13e347498f69b4f4e95830eda88937c72d7ba6 (diff)
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 <garsilva@embeddedor.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
-rw-r--r--drivers/bluetooth/bcm203x.c2
-rw-r--r--drivers/bluetooth/hci_ll.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/bluetooth/bcm203x.c b/drivers/bluetooth/bcm203x.c
index 5ce6d4176dc3..8e9547f195ef 100644
--- a/drivers/bluetooth/bcm203x.c
+++ b/drivers/bluetooth/bcm203x.c
@@ -121,7 +121,7 @@ static void bcm203x_complete(struct urb *urb)
121 } 121 }
122 122
123 data->state = BCM203X_LOAD_FIRMWARE; 123 data->state = BCM203X_LOAD_FIRMWARE;
124 124 /* fall through */
125 case BCM203X_LOAD_FIRMWARE: 125 case BCM203X_LOAD_FIRMWARE:
126 if (data->fw_sent == data->fw_size) { 126 if (data->fw_sent == data->fw_size) {
127 usb_fill_int_urb(urb, udev, usb_rcvintpipe(udev, BCM203X_IN_EP), 127 usb_fill_int_urb(urb, udev, usb_rcvintpipe(udev, BCM203X_IN_EP),
diff --git a/drivers/bluetooth/hci_ll.c b/drivers/bluetooth/hci_ll.c
index 424c15aa7bb7..e2c078d61730 100644
--- a/drivers/bluetooth/hci_ll.c
+++ b/drivers/bluetooth/hci_ll.c
@@ -242,7 +242,7 @@ static void ll_device_want_to_wakeup(struct hci_uart *hu)
242 * perfectly safe to always send one. 242 * perfectly safe to always send one.
243 */ 243 */
244 BT_DBG("dual wake-up-indication"); 244 BT_DBG("dual wake-up-indication");
245 /* deliberate fall-through - do not add break */ 245 /* fall through */
246 case HCILL_ASLEEP: 246 case HCILL_ASLEEP:
247 /* acknowledge device wake up */ 247 /* acknowledge device wake up */
248 if (send_hcill_cmd(HCILL_WAKE_UP_ACK, hu) < 0) { 248 if (send_hcill_cmd(HCILL_WAKE_UP_ACK, hu) < 0) {