Skip to content

Commit 6317950

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. This patch fixes the following warnings: net/bluetooth/rfcomm/core.c:479:6: warning: this statement may fall through [-Wimplicit-fallthrough=] net/bluetooth/l2cap_core.c:4223:6: warning: this statement may fall through [-Wimplicit-fallthrough=] Warning level 3 was used: -Wimplicit-fallthrough=3 This patch is part of the ongoing efforts to enabling -Wimplicit-fallthrough. Signed-off-by: Gustavo A. R. Silva <[email protected]> Signed-off-by: Marcel Holtmann <[email protected]>
1 parent 7c9cbd0 commit 6317950

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

net/bluetooth/l2cap_core.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4265,6 +4265,7 @@ static inline int l2cap_config_rsp(struct l2cap_conn *conn,
42654265
goto done;
42664266
break;
42674267
}
4268+
/* fall through */
42684269

42694270
default:
42704271
l2cap_chan_set_err(chan, ECONNRESET);

net/bluetooth/rfcomm/core.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -483,6 +483,7 @@ static int __rfcomm_dlc_close(struct rfcomm_dlc *d, int err)
483483
/* if closing a dlc in a session that hasn't been started,
484484
* just close and unlink the dlc
485485
*/
486+
/* fall through */
486487

487488
default:
488489
rfcomm_dlc_clear_timer(d);

0 commit comments

Comments
 (0)