]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
Bluetooth: Mark expected switch fall-throughs
authorGustavo A. R. Silva <gustavo@embeddedor.com>
Fri, 30 Mar 2018 21:05:06 +0000 (16:05 -0500)
committerJohan Hedberg <johan.hedberg@intel.com>
Sun, 1 Apr 2018 18:43:03 +0000 (21:43 +0300)
In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.

Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/mgmt.c
net/bluetooth/rfcomm/sock.c

index 6e9fc86d8dafe053563ab56e3ea4a20556e5cf4a..8a80d48d89c4c4192125eb8e98a7f4cbff1905db 100644 (file)
@@ -4801,6 +4801,7 @@ static int load_long_term_keys(struct sock *sk, struct hci_dev *hdev,
                case MGMT_LTK_P256_DEBUG:
                        authenticated = 0x00;
                        type = SMP_LTK_P256_DEBUG;
+                       /* fall through */
                default:
                        continue;
                }
index 93a3b219db09738a0a27a45b002ea7c60fd1896e..d606e9212291608ea2e266238c0f65ce18d0c311 100644 (file)
@@ -221,6 +221,7 @@ static void __rfcomm_sock_close(struct sock *sk)
        case BT_CONFIG:
        case BT_CONNECTED:
                rfcomm_dlc_close(d, 0);
+               /* fall through */
 
        default:
                sock_set_flag(sk, SOCK_ZAPPED);