]> git.ipfire.org Git - people/ms/linux.git/commitdiff
Bluetooth: RFCOMM: Use fallthrough pseudo-keyword
authorGustavo A. R. Silva <gustavoars@kernel.org>
Wed, 8 Jul 2020 20:25:05 +0000 (15:25 -0500)
committerMarcel Holtmann <marcel@holtmann.org>
Fri, 10 Jul 2020 17:09:42 +0000 (19:09 +0200)
Replace the existing /* fall through */ comments and its variants with
the new pseudo-keyword macro fallthrough[1].

[1] https://www.kernel.org/doc/html/latest/process/deprecated.html?highlight=fallthrough#implicit-switch-case-fall-through

Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/rfcomm/core.c
net/bluetooth/rfcomm/sock.c

index 2e20af317cea4467a6f7179d20e5a0912debc872..f2bacb464ccf3b8faf1e3d770c571427ff4b5fc4 100644 (file)
@@ -479,7 +479,7 @@ static int __rfcomm_dlc_close(struct rfcomm_dlc *d, int err)
                /* if closing a dlc in a session that hasn't been started,
                 * just close and unlink the dlc
                 */
-               /* fall through */
+               fallthrough;
 
        default:
                rfcomm_dlc_clear_timer(d);
index df14eebe80da8bc574e2810b235a9bbcddcf042c..0afc4bc5ab414f41e64612e028029ac973b2ca13 100644 (file)
@@ -218,7 +218,7 @@ static void __rfcomm_sock_close(struct sock *sk)
        case BT_CONFIG:
        case BT_CONNECTED:
                rfcomm_dlc_close(d, 0);
-               /* fall through */
+               fallthrough;
 
        default:
                sock_set_flag(sk, SOCK_ZAPPED);